protected function resetPasswordFinish(array $data)
    {
        $data['user']['password'] = $data['password'];
        unset($data['user']['data']['reset_password']);

        $this->user->update($data['user']['user_id'], $data['user']);
        $this->mail->set('user_changed_password', array($data['user']));

        return $this->getResultResetPasswordFinish();
    }
protected function resetPasswordFinish(array $data)
    {
        $data['user']['password'] = $data['password'];
        unset($data['user']['data']['reset_password']);

        $this->user->update($data['user']['user_id'], $data['user']);
        $this->mail->set('user_changed_password', array($data['user']));

        return $this->getResultResetPasswordFinish();
    }
protected function resetPasswordFinish ( array $ data ) { $ data [ 'user' ] [ 'password' ] = $ data [ 'password' ] ; unset ( $ data [ 'user' ] [ 'data' ] [ 'reset_password' ] ) ; $ this -> user -> update ( $ data [ 'user' ] [ 'user_id' ] , $ data [ 'user' ] ) ; $ this -> mail -> set ( 'user_changed_password' , array ( $ data [ 'user' ] ) ) ; return $ this -> getResultResetPasswordFinish ( ) ; }
Finish the password reset operation
@param array $data
@return array
Finish the password reset operation