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:
Tim Almdal
2009-10-26 11:37:03 -07:00
parent 599cfab3b3
commit 2dcd8f8a25

View File

@@ -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);
}