Fix "empty password" notification

This commit is contained in:
Dmitriy Simushev 2015-01-21 11:28:13 +00:00
parent c27a0e1aea
commit 9799fb5e3f

View File

@ -228,7 +228,7 @@ class ProfileController extends AbstractController
// to manually update them.
if ($target_operator['operatorid'] == $operator['operatorid']) {
// Check if the admin has set his password for the first time.
$to_dashboard = check_password_hash($login, '', $operator['vcpassword']) && $password != '';
$to_dashboard = check_password_hash($operator['vclogin'], '', $operator['vcpassword']) && $password != '';
// Update operator's fields.
$this->getAuthenticationManager()->setOperator($target_operator);