password
This commit is contained in:
parent
1c71001231
commit
3cec5cb867
|
@ -185,6 +185,7 @@ class RegistrationController extends AppController {
|
||||||
if (!$send and $this->request->is('post')) {
|
if (!$send and $this->request->is('post')) {
|
||||||
if ($this->request->data['User']['password1'] == $this->request->data['User']['password2']) {
|
if ($this->request->data['User']['password1'] == $this->request->data['User']['password2']) {
|
||||||
$password = $this->MiconwareSession->create_hash($this->request->data['User']['password1']);
|
$password = $this->MiconwareSession->create_hash($this->request->data['User']['password1']);
|
||||||
|
var_dump($password);
|
||||||
$result = $this->User->replace_password($try,$password);
|
$result = $this->User->replace_password($try,$password);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$this->MiconwareSession->setFlash(__('dreamjob.password_replace.done'), 'flash', array('alert' => 'success'));
|
$this->MiconwareSession->setFlash(__('dreamjob.password_replace.done'), 'flash', array('alert' => 'success'));
|
||||||
|
|
Loading…
Reference in New Issue