summaryrefslogtreecommitdiff
path: root/protected/models/User.php
diff options
context:
space:
mode:
authorTristan Zur <tzur@ccwn.org>2012-05-16 18:14:03 +0200
committerTristan Zur <tzur@ccwn.org>2012-05-16 18:14:03 +0200
commit48f25c5eadd2a82a365b034a59b3cba4536a1e74 (patch)
tree687b9437d4afe02d9595ec38b850cfc04bf10c27 /protected/models/User.php
parent13044f64bf51001ea0c9df5b1f6e7f16b6857151 (diff)
Bugfix: Die Datumsvalidierung funktionierte nicht, weil Vergleich auf
der Basis von Strings durchgeführt wurde
Diffstat (limited to '')
-rw-r--r--protected/models/User.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/protected/models/User.php b/protected/models/User.php
index 13163c3..e0a5eeb 100644
--- a/protected/models/User.php
+++ b/protected/models/User.php
@@ -85,7 +85,9 @@ class User extends CActiveRecord
$this->salt = $this->generateRandomKey();
}
+ if (!$this->checkPassword($this->password)) {
$this->password = $this->encryptPassword($this->password);
+ }
return parent::beforeSave();
}