N°2574 - bugfix and UI

- 🐛 fix regression preventing automatic update of password_renewed_date
 - 💄 add a "general information" fieldset
This commit is contained in:
bruno DA SILVA
2020-02-13 15:23:56 +01:00
parent a86079c477
commit 4cedd30625
16 changed files with 34 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ class UserLocal extends UserInternal
array(
'col:col1' =>
array(
'contactid', 'org_id', 'email', 'login', 'password', 'language', 'status', 'profile_list', 'allowed_org_list',
'fieldset:UserLocal:info' => array('contactid', 'org_id', 'email', 'login', 'password', 'language', 'status', 'profile_list', 'allowed_org_list',)
),
'col:col2' =>
array(
@@ -169,14 +169,30 @@ class UserLocal extends UserInternal
if ('password' == $sAttCode)
{
$sNow = date(\AttributeDate::GetInternalFormat());
$this->Set('password_renewed_date', $sNow);
$this->ValidatePassword($value);
}
return $result;
}
protected function OnUpdate()
{
parent::OnUpdate(); // TODO: Change the autogenerated stub
if (empty($this->m_oPasswordValidity))
{
return;
}
if (array_key_exists('password_renewed_date', $this->ListChanges()))
{
return;
}
$sNow = date(\AttributeDate::GetInternalFormat());
$this->Set('password_renewed_date', $sNow);
}
public function IsPasswordValid()
{
if (ContextTag::Check(ContextTag::TAG_SETUP))

View File

@@ -1898,6 +1898,7 @@ Dict::Add('CS CZ', 'Czech', 'Čeština', array(
'Server:otherinfo' => 'Další informace',
'Server:power' => 'Napájení',
'Person:info' => 'Obecné informace',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => 'Personal information~~',
'Person:notifiy' => 'Upozornění',
'Class:Subnet/Tab:IPUsage' => 'Využití IP',

View File

@@ -1891,6 +1891,7 @@ Dict::Add('DA DA', 'Danish', 'Dansk', array(
'Server:otherinfo' => 'Øvrig Information',
'Server:power' => 'Power supply~~',
'Person:info' => 'Almindelig Information',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => 'Personal information~~',
'Person:notifiy' => 'Underretning',
'Class:Subnet/Tab:IPUsage' => 'IP Brug',

View File

@@ -1893,6 +1893,7 @@ Dict::Add('DE DE', 'German', 'Deutsch', array(
'Server:otherinfo' => 'Sonstige Informationen',
'Server:power' => 'Stromversorgung',
'Person:info' => 'Allgemeine Informationen',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => 'Persönliche Informationen',
'Person:notifiy' => 'Benachrichtigungen',
'Class:Subnet/Tab:IPUsage' => 'IP-Nutzung',

View File

@@ -1897,6 +1897,7 @@ Dict::Add('EN US', 'English', 'English', array(
'Server:otherinfo' => 'Other information',
'Server:power' => 'Power supply',
'Person:info' => 'General information',
'UserLocal:info' => 'General information',
'Person:personal_info' => 'Personal information',
'Person:notifiy' => 'Notification',
'Class:Subnet/Tab:IPUsage' => 'IP Usage',

View File

@@ -1897,6 +1897,7 @@ Dict::Add('ES CR', 'Spanish', 'Español, Castellaño', array(
'Server:otherinfo' => 'Otra Información',
'Server:power' => 'Fuente de Poder',
'Person:info' => 'Información General',
'UserLocal:info' => 'Información General',
'Person:personal_info' => 'Información Personal',
'Person:notifiy' => 'Notificación',
'Class:Subnet/Tab:IPUsage' => 'Uso de IP',

View File

@@ -1894,6 +1894,7 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Server:otherinfo' => 'Autres informations',
'Server:power' => 'Alimentation électrique',
'Person:info' => 'Informations générales',
'UserLocal:info' => 'Informations générales',
'Person:personal_info' => 'Informations personnelles',
'Person:notifiy' => 'Notification',
'Class:Subnet/Tab:IPUsage' => 'IP utilisées',

View File

@@ -1890,6 +1890,7 @@ Dict::Add('HU HU', 'Hungarian', 'Magyar', array(
'Server:otherinfo' => 'Other information~~',
'Server:power' => 'Power supply~~',
'Person:info' => 'General information~~',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => 'Personal information~~',
'Person:notifiy' => 'Notification~~',
'Class:Subnet/Tab:IPUsage' => 'IP felhasználás',

View File

@@ -1890,6 +1890,7 @@ Dict::Add('IT IT', 'Italian', 'Italiano', array(
'Server:otherinfo' => 'Other information~~',
'Server:power' => 'Power supply~~',
'Person:info' => 'General information~~',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => 'Personal information~~',
'Person:notifiy' => 'Notification~~',
'Class:Subnet/Tab:IPUsage' => 'Utilizzo IP',

View File

@@ -1890,6 +1890,7 @@ Dict::Add('JA JP', 'Japanese', '日本語', array(
'Server:otherinfo' => '他の情報',
'Server:power' => 'Power supply~~',
'Person:info' => '情報',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => 'Personal information~~',
'Person:notifiy' => '通知',
'Class:Subnet/Tab:IPUsage' => 'IP 利用',

View File

@@ -1902,6 +1902,7 @@ Dict::Add('NL NL', 'Dutch', 'Nederlands', array(
'Server:otherinfo' => 'Andere informatie',
'Server:power' => 'Stroomtoevoer',
'Person:info' => 'Globale informatie',
'UserLocal:info' => 'Globale informatie~~',
'Person:personal_info' => 'Persoonlijke informatie',
'Person:notifiy' => 'Notificeer',
'Class:Subnet/Tab:IPUsage' => 'IP-gebruik',

View File

@@ -1896,6 +1896,7 @@ Dict::Add('PT BR', 'Brazilian', 'Brazilian', array(
'Server:otherinfo' => 'Outras informações',
'Server:power' => 'Fonte de alimentação',
'Person:info' => 'Informações gerais',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => 'Informação pessoal',
'Person:notifiy' => 'Notificação',
'Class:Subnet/Tab:IPUsage' => 'IP usado',

View File

@@ -1883,6 +1883,7 @@ Dict::Add('RU RU', 'Russian', 'Русский', array(
'Server:otherinfo' => 'Дополнительно',
'Server:power' => 'Электропитание',
'Person:info' => 'Основное',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => 'Персональная информация',
'Person:notifiy' => 'Уведомления',
'Class:Subnet/Tab:IPUsage' => 'Использование IP-адресов',

View File

@@ -1895,6 +1895,7 @@ Dict::Add('SK SK', 'Slovak', 'Slovenčina', array(
'Server:otherinfo' => 'Iné informácie',
'Server:power' => 'Power supply~~',
'Person:info' => 'Všeobecné informácie',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => 'Personal information~~',
'Person:notifiy' => 'Upozornenie',
'Class:Subnet/Tab:IPUsage' => 'Využívanosť IP adries',

View File

@@ -1897,6 +1897,7 @@ Dict::Add('TR TR', 'Turkish', 'Türkçe', array(
'Server:otherinfo' => 'Other information~~',
'Server:power' => 'Power supply~~',
'Person:info' => 'General information~~',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => 'Personal information~~',
'Person:notifiy' => 'Notification~~',
'Class:Subnet/Tab:IPUsage' => 'IP Kullanımı',

View File

@@ -1895,6 +1895,7 @@ Dict::Add('ZH CN', 'Chinese', '简体中文', array(
'Server:otherinfo' => '其它信息',
'Server:power' => '电力供应',
'Person:info' => '基本信息',
'UserLocal:info' => 'General information~~',
'Person:personal_info' => '个人信息',
'Person:notifiy' => '通知',
'Class:Subnet/Tab:IPUsage' => 'IP 使用率',