mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
* Fixed
* full support for OTHire 0.0.3 * added support for otservers that doesn't use account.name field, instead just account number will be used * (install) moved admin account creation to new step * fixed encryption detection on 0.3 * fixed bug when server_config table doesn't exist * other fixes
This commit is contained in:
@@ -58,7 +58,10 @@ else
|
||||
}
|
||||
|
||||
$account_logged = $ots->createObject('Account');
|
||||
$account_logged->find($login_account);
|
||||
if(USE_ACCOUNT_NAME)
|
||||
$account_logged->find($login_account);
|
||||
else
|
||||
$account_logged->load($login_account);
|
||||
|
||||
$config_salt_enabled = fieldExist('salt', 'accounts');
|
||||
if($account_logged->isLoaded() && encrypt(($config_salt_enabled ? $account_logged->getCustomField('salt') : '') . $login_password) == $account_logged->getPassword()
|
||||
|
Reference in New Issue
Block a user