add password repeat for user creation (issue #85)

This commit is contained in:
oliver 2015-04-19 11:45:52 +02:00
commit 847b8821d6
2 changed files with 10 additions and 2 deletions

View file

@ -414,6 +414,10 @@
if($this->Users->emailExists($email)) {
$validation = $this->Validation->addValidationResult($validation, 'email', 'exist', true);
}
$password = $this->request->getPostParam('password');
if($password != $this->request->getPostParam('passwordrepeat')) {
$validation = $this->Validation->addValidationResult($validation, 'password', 'repeat', false);
}
// Create
if($validation === true)