diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-27 07:59:26 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-27 07:59:26 -0700 |
commit | d3e73cbb21339b7e47cc3d351e57d9462b55a063 (patch) | |
tree | e07a200561eaba8aa5176049e3a845b29dff4911 | |
parent | 60339d4584e7a729d96256c59a48ad6a4692da1d (diff) | |
parent | b8624ba71af69c7708b09479a5964126cf97d796 (diff) |
Merge branch 'talmdal_dev' of git@github.com:gallery/gallery3 into talmdal_dev
-rw-r--r-- | modules/user/controllers/password.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/controllers/password.php b/modules/user/controllers/password.php index b76a5e92..477651bf 100644 --- a/modules/user/controllers/password.php +++ b/modules/user/controllers/password.php @@ -32,7 +32,7 @@ class Password_Controller extends Controller { if (request::method() == "post") { $this->_change_password(); } else { - $user = user::lookup_user_by_field("hash", Input::instance()->get("key")); + $user = user::lookup_by_hash(Input::instance()->get("key")); if (!empty($user)) { print $this->_new_password_form($user->hash); } else { @@ -46,7 +46,7 @@ class Password_Controller extends Controller { $valid = $form->validate(); if ($valid) { - $user = identity::lookup_user_by_name($form->reset->inputs["name"]->value); + $user = user::lookup_by_name($form->reset->inputs["name"]->value); if (!$user->loaded || empty($user->email)) { $form->reset->inputs["name"]->add_error("no_email", 1); $valid = false; |