diff options
author | Andy Staudacher <andy.st@gmail.com> | 2010-02-06 11:32:53 -0800 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-06 11:32:53 -0800 |
commit | 4977c00db1b812abad5ad2d530e1dd44171b6d85 (patch) | |
tree | 4abab0ff9bb6951f8a53b49ea8d2f494a48140d0 /modules/user/helpers | |
parent | 31aaf7555f51dd80cf1e97fd3c20a1c245cbf61b (diff) | |
parent | 15e22076552929bf1f45888945f65de621aa2aac (diff) |
Merge commit 'upstream/master'
Diffstat (limited to 'modules/user/helpers')
-rw-r--r-- | modules/user/helpers/user.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php index 3561021f..7ceca6a5 100644 --- a/modules/user/helpers/user.php +++ b/modules/user/helpers/user.php @@ -70,6 +70,12 @@ class user_Core { return false; } + static function valid_password($password_input) { + if (!user::is_correct_password(identity::active_user(), $password_input->value)) { + $password_input->add_error("invalid", 1); + } + } + /** * Create the hashed passwords. * @param string $password a plaintext password |