mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
- The code now uses the standard extension method (using interfaces) - the metamodel can now filter on iModuleExtension in order to leverage extensions modularity (see MetaModel::EnumPlugins second param) - during the setup, there is no pawsord policy control - there is now a default policy - new (more precie) translation reflecting the default policy - fix CI?
37 lines
895 B
PHP
37 lines
895 B
PHP
<?php
|
|
class UserLocalPasswordPolicyMockValid implements \UserLocalPasswordValidator
|
|
{
|
|
const CHECK_STATUS = true;
|
|
const MESSAGE = null;
|
|
|
|
public function __construct()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param string $proposedValue
|
|
* @param UserLocal $oUserLocal
|
|
* @param $config
|
|
*
|
|
* @return UserLocalPasswordValidity
|
|
*/
|
|
public function ValidatePassword($proposedValue, UserLocal $oUserLocal, $config)
|
|
{
|
|
return new UserLocalPasswordValidity(static::CHECK_STATUS, static::MESSAGE);
|
|
}
|
|
}
|
|
|
|
class UserLocalPasswordPolicyMockNotValid extends UserLocalPasswordPolicyMockValid
|
|
{
|
|
const CHECK_STATUS = false;
|
|
const MESSAGE = 'UserLocalPasswordPolicyMockNotValid';
|
|
}
|
|
|
|
class UserLocalPasswordPolicyMockValidBis extends UserLocalPasswordPolicyMockValid
|
|
{
|
|
}
|
|
|
|
class UserLocalPasswordPolicyMockNotValidBis extends UserLocalPasswordPolicyMockNotValid
|
|
{
|
|
const MESSAGE = 'UserLocalPasswordPolicyMockNotValidBis';
|
|
} |