Merge branch 'ticket-13943-ResetBOpassword' into develop

This commit is contained in:
Marion Muszynski 2017-09-21 15:37:57 +02:00
commit b2d1f7bf90

View File

@ -28,6 +28,7 @@ class Ant_Resetbopassword extends Module
return false;
}
Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'employee` ADD `date_passwd_upd` DATETIME DEFAULT "'.pSQL(date("Y-m-d H:i:s")).'"');
# Set default configuration values
Configuration::updateValue('ANT_RESETBOPASSWORD_FREQ', 3); // month
Configuration::updateValue('ANT_RESETBOPASSWORD_LIMIT', 7); // day
@ -43,7 +44,6 @@ class Ant_Resetbopassword extends Module
return false;
}
Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'employee` ADD `date_passwd_upd` DATETIME DEFAULT "'.pSQL(date("Y-m-d H:i:s")).'"');
Configuration::deleteByName('ANT_RESETBOPASSWORD_FREQ');
Configuration::deleteByName('ANT_RESETBOPASSWORD_LIMIT');
Configuration::deleteByName('ANT_RESETBOPASSWORD_DATE');