diff options
author | Nathan Kinkade <nkinkade@nkinka.de> | 2010-02-03 13:48:34 +0000 |
---|---|---|
committer | Nathan Kinkade <nkinkade@nkinka.de> | 2010-02-03 13:48:34 +0000 |
commit | 052476ef44ca801766cbd6bdbfe42d5a0a362e52 (patch) | |
tree | f7a1d39fe4aae154e916e2cd4c02a798aef6c67f /modules/user/helpers | |
parent | 92d211bae653b6c94e0038b1a47734a1acaa149e (diff) | |
parent | 99a7f470b93d35717f8d5979d05da6cf05a1dd20 (diff) |
Merge branch 'master' of git://github.com/gallery/gallery3
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 |