src/Service/MelisCoreLostPasswordService.php
protected function updatePassword($login, $newPass)
    {
        $success       = false;
        $userTable     = $this->getServiceLocator()->get('MelisCoreTableUser');
        $melisCoreAuth = $this->serviceLocator->get('MelisCoreAuth');

        if($this->isDataExists($login)) 
        {
            $userTable->update(array(
                'usr_password' => $melisCoreAuth->encryptPassword($newPass)
            ),'usr_login', $login);
            
            $success = true;
        }
        
        return $success;
    }
protected function updatePassword($login, $newPass)
    {
        $success       = false;
        $userTable     = $this->getServiceLocator()->get('MelisCoreTableUser');
        $melisCoreAuth = $this->serviceLocator->get('MelisCoreAuth');

        if($this->isDataExists($login)) 
        {
            $userTable->update(array(
                'usr_password' => $melisCoreAuth->encryptPassword($newPass)
            ),'usr_login', $login);
            
            $success = true;
        }
        
        return $success;
    }
protected function updatePassword ( $ login , $ newPass ) { $ success = false ; $ userTable = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreTableUser' ) ; $ melisCoreAuth = $ this -> serviceLocator -> get ( 'MelisCoreAuth' ) ; if ( $ this -> isDataExists ( $ login ) ) { $ userTable -> update ( array ( 'usr_password' => $ melisCoreAuth -> encryptPassword ( $ newPass ) ) , 'usr_login' , $ login ) ; $ success = true ; } return $ success ; }
Updates the user's password
@param String $login
@param String $newPass
Updates the user s password