mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* updated polish locale (translation) on install
* fixed hidding shop system menu on tibiacom template when disabled in config * some changes to sample characters: chanced town_id to 1, posx: 1000, posy: 1000, posz: 1000 and default group_id to 1 so you can change in-game outfits and they will be used * fixed account.login redirect not working on tibiacom template * installation: warn about wrong admin account name/id and password * (internal) removed some duplicated code on install finish * (internal) renamed installation step files to be in correct order * added TODO file * bumped version to 0.7.3
This commit is contained in:
@@ -26,7 +26,6 @@ if($save)
|
||||
{
|
||||
if(USE_ACCOUNT_NAME) {
|
||||
$account_name = $_POST['account'];
|
||||
$account_name_up = strtoupper($account_name);
|
||||
}
|
||||
else
|
||||
$account_id = $_POST['account'];
|
||||
@@ -40,7 +39,7 @@ if($save)
|
||||
if(!Validator::accountId($account_id))
|
||||
$errors['account'] = Validator::getLastError();
|
||||
}
|
||||
else if(!Validator::accountName($account_name_up))
|
||||
else if(!Validator::accountName($account_name))
|
||||
$errors['account'] = Validator::getLastError();
|
||||
|
||||
// email
|
||||
@@ -72,7 +71,7 @@ if($save)
|
||||
}
|
||||
|
||||
// password
|
||||
if(!isset($password[0])) {
|
||||
if(empty($password)) {
|
||||
$errors['password'] = 'Please enter the password for your new account.';
|
||||
}
|
||||
elseif($password != $password2) {
|
||||
@@ -83,8 +82,7 @@ if($save)
|
||||
}
|
||||
|
||||
// check if account name is not equal to password
|
||||
if(USE_ACCOUNT_NAME && $account_name_up == strtoupper($password))
|
||||
{
|
||||
if(USE_ACCOUNT_NAME && strtoupper($account_name) == strtoupper($password)) {
|
||||
$errors['password'] = 'Password may not be the same as account name.';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user