This commit is contained in:
Martin Müller 2014-05-11 15:23:55 +02:00
parent d21c9d78c2
commit 1c71001231
1 changed files with 2 additions and 2 deletions

View File

@ -184,8 +184,8 @@ class RegistrationController extends AppController {
}
if (!$send and $this->request->is('post')) {
if ($this->request->data['User']['password1'] == $this->request->data['User']['password2']) {
$profil['User']['password'] = $this->MiconwareSession->create_hash($this->request->data['User']['password1']);
$result = $this->User->replace_password($try,$profil['User']['password']);
$password = $this->MiconwareSession->create_hash($this->request->data['User']['password1']);
$result = $this->User->replace_password($try,$password);
if ($result) {
$this->MiconwareSession->setFlash(__('dreamjob.password_replace.done'), 'flash', array('alert' => 'success'));
} else {