src/Service/MelisCoreLostPasswordService.php
public function processUpdatePassword($hash, $password) 
    {
        $data = $this->getPasswordRequestData($hash);
        $login = '';
        $success = false;
        foreach($data as $val)
        {
            $login = $val->rh_login;
        }
        
        if($this->isDataExists($login)) 
        {
            $success = $this->updatePassword($login, $password);
            
            if($success)
                $this->deletePasswordRequestData($hash);
        }
        
        return $success;
    }
public function processUpdatePassword($hash, $password) 
    {
        $data = $this->getPasswordRequestData($hash);
        $login = '';
        $success = false;
        foreach($data as $val)
        {
            $login = $val->rh_login;
        }
        
        if($this->isDataExists($login)) 
        {
            $success = $this->updatePassword($login, $password);
            
            if($success)
                $this->deletePasswordRequestData($hash);
        }
        
        return $success;
    }
public function processUpdatePassword ( $ hash , $ password ) { $ data = $ this -> getPasswordRequestData ( $ hash ) ; $ login = '' ; $ success = false ; foreach ( $ data as $ val ) { $ login = $ val -> rh_login ; } if ( $ this -> isDataExists ( $ login ) ) { $ success = $ this -> updatePassword ( $ login , $ password ) ; if ( $ success ) $ this -> deletePasswordRequestData ( $ hash ) ; } return $ success ; }
Processes the password reset and deletes the existing record in the lost password table
@param String $hash
@param String $password
@return boolean
Processes the password reset and deletes the existing record in the lost password table