diff options
author | emkael <emkael@tlen.pl> | 2016-03-16 01:07:09 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-03-16 01:07:09 +0100 |
commit | 18079887ee47d59055be6b911b41384cd4b8975a (patch) | |
tree | 3fa52453ad26508191785a7a33629e00006665c1 | |
parent | 3b489d6312a4f2734e4ab3129e64d3ab007f3716 (diff) |
* password change only for DB users
-rw-r--r-- | app/php/components/PasswordChange.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/php/components/PasswordChange.php b/app/php/components/PasswordChange.php index 8aedcab..d0a90fb 100644 --- a/app/php/components/PasswordChange.php +++ b/app/php/components/PasswordChange.php @@ -9,6 +9,9 @@ class PasswordChange extends TTemplateControl { } public function setUserToChange(DbUser $user) { + if ($user->IsGuest) { + throw new TInvalidDataValueException('Password change impossible for guest user'); + } $this->setControlState('user', $user); } |