LoginController::setNewPassword PHP Method

setNewPassword() public method

Set the new password Please note that this happens while the user is not logged in. The user identifies via the data provided by the password reset link from the email, automatically filled into the
fields. See verifyPasswordReset() for more. Then (regardless of result) route user to index page (user will get success/error via feedback message) POST request ! TODO this is an _action
public setNewPassword ( )
    public function setNewPassword()
    {
        PasswordResetModel::setNewPassword(Request::post('user_name'), Request::post('user_password_reset_hash'), Request::post('user_password_new'), Request::post('user_password_repeat'));
        Redirect::to('login/index');
    }