public function completeResetPassword($code, $password)
    {
        if (!$this->checkResetPasswordCode($code))
            return FALSE;

        $this->password = $password;
        $this->reset_time = null;
        $this->reset_code = null;

        return $this->save();
    }
public function completeResetPassword($code, $password)
    {
        if (!$this->checkResetPasswordCode($code))
            return FALSE;

        $this->password = $password;
        $this->reset_time = null;
        $this->reset_code = null;

        return $this->save();
    }
public function completeResetPassword ( $ code , $ password ) { if ( ! $ this -> checkResetPasswordCode ( $ code ) ) return FALSE ; $ this -> password = $ password ; $ this -> reset_time = null ; $ this -> reset_code = null ; return $ this -> save ( ) ; }
Sets the new password on user requested reset

@param $code
@param $password

@return bool
@throws \Exception
Sets the new password on user requested reset