We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50227
    • 18 Posts
    Is it possible to use customValidators with login.changepassword?
    [[!ChangePassword?   
    	&submitVar=`change-password`   
    	&placeholderPrefix=``   
    	&validateOldPassword=`1`   
    	&reloadOnSuccess=`0`   
    	&successMessage=`Your password has been updated!`
      	&validate=`
      		nospam:blank,
        	password_new:required:AlphaNumericPassword 
    	`
    	&customValidators=`AlphaNumericPassword`
    ]]
    <div class="div_box">
    <form class="basic-grey" action="[[~[[*id]]]]" method="post">    
    <div>[[!+successMessage]]</div>
    <div class="updprof-error">[[!+error_message]]</div>
    <input type="hidden" name="nospam" value="" />    
      <div class="ff">        
        <label for="password_old">Old Password </label><span class="error">[[!+error.password_old]]</span>        
        <input type="password" name="password_old" id="password_old" value="[[+password_old]]" />    
      </div>
      <div class="ff">
        <label for="password_new">New Password </label><span class="error">[[!+error.password_new]]</span>         
        <input type="password" name="password_new" id="password_new" value="[[+password_new]]" />
      </div>    
      <div class="ff">
        <label for="password_new_confirm">Confirm New Password </label><span class="error">[[!+error.password_new_confirm]]</span>        
        <input type="password" name="password_new_confirm" id="password_new_confirm" value="[[+password_new_confirm]]" />
      </div>    
      <div class="ff">
        <input class="a_links" type="submit" name="change-password" value="Change Password" />    
      </div>
    </form>
    </div>
    
    


    This works fine and updates the password but it doesn't fire the AlphaNumericPassword and doesn't show any errors in the error log.

    Revo 2.5.7-pl