From 1c710012310d900a938911fcc7abb0c9efbdee23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Sun, 11 May 2014 15:23:55 +0200 Subject: [PATCH] password --- app/Controller/RegistrationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controller/RegistrationController.php b/app/Controller/RegistrationController.php index 05abd86..0f7e98d 100644 --- a/app/Controller/RegistrationController.php +++ b/app/Controller/RegistrationController.php @@ -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 {