You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2007/08/15 22:41:57 UTC
svn commit: r566333 -
/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/PasswordTextField.java
Author: ivaynberg
Date: Wed Aug 15 13:41:55 2007
New Revision: 566333
URL: http://svn.apache.org/viewvc?view=rev&rev=566333
Log:
removed decryption. the idea is flawed because in order for it to properly work for a postback the contents would have to be encrypted on clientside before being submitted.
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/PasswordTextField.java
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/PasswordTextField.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/PasswordTextField.java?view=diff&rev=566333&r1=566332&r2=566333
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/PasswordTextField.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/PasswordTextField.java Wed Aug 15 13:41:55 2007
@@ -83,27 +83,6 @@
}
/**
- * @see FormComponent#getModelValue()
- */
- public final String getModelValue()
- {
- final String value = getModelObjectAsString();
- if (value != null)
- {
- try
- {
- return getApplication().getSecuritySettings().getCryptFactory().newCrypt()
- .encryptUrlSafe(value);
- }
- catch (Exception e)
- {
- log.error("Problem applying encryption; go on without for now", e);
- }
- }
- return value;
- }
-
- /**
* Flag indicating whether the contents of the field should be reset each
* time it is rendered. If <code>true</code>, the contents are emptied
* when the field is rendered. This is useful for login forms. If
@@ -119,27 +98,6 @@
{
this.resetPassword = resetPassword;
return this;
- }
-
- /**
- * @see org.apache.wicket.markup.html.form.FormComponent#setModelValue(java.lang.String[])
- */
- public final void setModelValue(String[] valueArray)
- {
- String value = valueArray != null && valueArray.length > 0 ? valueArray[0] : null;
- String decryptedValue;
- try
- {
- decryptedValue = getApplication().getSecuritySettings().getCryptFactory().newCrypt()
- .decryptUrlSafe(value);
- }
- catch (Exception e)
- {
- decryptedValue = value;
- log.error("Problem applying encryption; go on without for now", e);
- }
-
- setModelObject(decryptedValue);
}
/**