summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-03-16 01:07:09 +0100
committeremkael <emkael@tlen.pl>2016-03-16 01:07:09 +0100
commit18079887ee47d59055be6b911b41384cd4b8975a (patch)
tree3fa52453ad26508191785a7a33629e00006665c1 /app
parent3b489d6312a4f2734e4ab3129e64d3ab007f3716 (diff)
* password change only for DB users
Diffstat (limited to 'app')
-rw-r--r--app/php/components/PasswordChange.php3
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);
}