skeeks\cms\models\forms\ResetPasswordForm::resetPassword PHP Method

resetPassword() public method

Resets password.
public resetPassword ( ) : boolean
return boolean if password was reset.
    public function resetPassword()
    {
        $user = $this->_user;
        $user->password = $this->password;
        $user->removePasswordResetToken();
        return $user->save();
    }