* fixed recovering account and changing password when salt is enabled

* added 'enabled' field in myaac_hooks table, which can enable or
disable specified hook
* password change minimal/maximal length is now more precise
This commit is contained in:
slawkens1
2017-08-25 00:10:53 +02:00
parent 603c2175e3
commit c8c1ba5682
8 changed files with 17 additions and 14 deletions

View File

@@ -84,7 +84,7 @@ class Hooks
public function load()
{
global $db;
$hooks = $db->query('SELECT `name`, `type`, `file` FROM `' . TABLE_PREFIX . 'hooks`;');
$hooks = $db->query('SELECT `name`, `type`, `file` FROM `' . TABLE_PREFIX . 'hooks` WHERE `enabled` = 1;');
foreach($hooks as $hook)
$this->register($hook['name'], $hook['type'], $hook['file']);
}