selfhosted/models/forms/ResetPasswordForm.php
/**
     * Resets password.
     *
     * @return boolean if password was reset.
     */
Resets password.
@return boolean if password was reset.
Resets password . @return boolean if password was reset .
public function resetPassword()
    {
        $user = $this->_user;
        $user->setPassword($this->new_password);
        $user->removePasswordResetToken();
        if ($user->save(false)) {
            return true;
        } else {
            return false;
        }
    }
public function resetPassword ( ) { $ user = $ this -> _user ; $ user -> setPassword ( $ this -> new_password ) ; $ user -> removePasswordResetToken ( ) ; if ( $ user -> save ( false ) ) { return true ; } else { return false ; } }
Resets password.
Resets password .