mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-02-05 07:55:25 -05:00
When we are changing the password using the change password from as part of the password reset, the input value is in the post[hash] variable as opposed to the get(key) value. This should fix ticket #850.
This commit is contained in:
@@ -116,7 +116,7 @@ class Password_Controller extends Controller {
|
||||
private function _change_password() {
|
||||
$view = $this->_new_password_form();
|
||||
if ($view->content->validate()) {
|
||||
$user = user::lookup_user_by_field("hash", Input::instance()->get("key"));
|
||||
$user = user::lookup_by_hash(Input::instance()->post("hash"));
|
||||
if (empty($user)) {
|
||||
throw new Exception("@todo FORBIDDEN", 503);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user