Prado\Security\TUserManager::setPasswordMode PHP Méthode

setPasswordMode() public méthode

public setPasswordMode ( $value )
    public function setPasswordMode($value)
    {
        $this->_passwordMode = TPropertyValue::ensureEnum($value, 'Prado\\Security\\TUserManagerPasswordMode');
    }

Usage Example

Exemple #1
0
 public function testValidateUser()
 {
     $userManager = new TUserManager();
     $userManager->init(self::$config);
     $userManager->setPasswordMode('Clear');
     self::assertTrue($userManager->validateUser('Joe', 'demo'));
     self::assertFalse($userManager->validateUser('John', 'bad'));
 }