diff options
| author | Tristan Zur <tzur@ccwn.org> | 2012-05-16 18:14:03 +0200 |
|---|---|---|
| committer | Tristan Zur <tzur@ccwn.org> | 2012-05-16 18:14:03 +0200 |
| commit | 48f25c5eadd2a82a365b034a59b3cba4536a1e74 (patch) | |
| tree | 687b9437d4afe02d9595ec38b850cfc04bf10c27 /protected/models | |
| parent | 13044f64bf51001ea0c9df5b1f6e7f16b6857151 (diff) | |
Bugfix: Die Datumsvalidierung funktionierte nicht, weil Vergleich auf
der Basis von Strings durchgeführt wurde
Diffstat (limited to 'protected/models')
| -rw-r--r-- | protected/models/User.php | 2 |
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(); } |
