We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core/components/login/model/login/loginvalidator.class.php
Password Confirmation was not getting the password field value through the "params". When i did it manually, it worked.
password
public function password_confirm($key,$value,$param = 'password_confirm') { if (empty($value)) return $this->modx->lexicon('register.password_not_confirmed'); //$confirm = !empty($this->fields[$param]) ? $this->fields[$param] : ''; $confirm = !empty($this->fields["password"]) ? $this->fields["password"] : ''; if ($confirm != $value) { return $this->_getErrorMessage($key,'vTextPasswordConfirm','register.password_dont_match',array( 'field' => $key, 'password' => $value, 'password_confirm' => $confirm, )); } return true; }
the validate code is:
validate
password:required:minLength=^6^, passwordagain:password_confirm=^password^
HTML:
<label for="password">[[%register.password]] [[!+error.password]]</label> <input type="password" name="password" id="password" value="[[+password]]" /> <label for="passwordagain">Confirm Password [[!+error.passwordagain]]</label> <input type="password" name="passwordagain" id="passwordagain" value="[[+passwordagain]]" />
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Password Confirmation was not getting the
password
field value through the "params".When i did it manually, it worked.
the
validate
code is:HTML:
The text was updated successfully, but these errors were encountered: