Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
fix password change page - mandatory old password field
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jun 17, 2013
1 parent bb42b8f commit 5d66478
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -62,11 +62,14 @@ public class PasswordChangeAction implements Serializable
private String passwordNew;
private String passwordConfirm;


public void setPasswordOld(String passwordOld)
{
this.passwordOld = passwordOld;
}


@NotEmpty
@Size(min = 6, max = 20)
public String getPasswordOld()
{
return passwordOld;
Expand Down
1 change: 1 addition & 0 deletions zanata-war/src/main/webapp/account/changepassword.xhtml
Expand Up @@ -20,6 +20,7 @@
<ui:define name="label">#{messages['jsf.OldPassword']}</ui:define>
<h:inputSecret id="passwordOld" redisplay="true" required="true"
value="#{passwordChange.passwordOld}">
<a4j:ajax event="blur" render="passwordOldField"/>
</h:inputSecret>
</s:decorate>
<s:decorate id="passwordNewField" template="../WEB-INF/layout/edit.xhtml" enclose="true">
Expand Down

0 comments on commit 5d66478

Please sign in to comment.