mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Auth/Fixup
* provide empty values for non-default db fields when initializing external accounts * removed browser check for username maxlength as it depends on auth method
This commit is contained in:
@@ -324,7 +324,7 @@ class User
|
|||||||
return $_;
|
return $_;
|
||||||
}
|
}
|
||||||
|
|
||||||
$newId = DB::Aowow()->query('INSERT IGNORE INTO ?_account (`extId`, `user`, `displayName`, `joinDate`, `prevIP`, `prevLogin`, `locale`, `status`, `userGroups`) VALUES (?d, ?, ?, UNIX_TIMESTAMP(), ?, UNIX_TIMESTAMP(), ?d, ?d, ?d)',
|
$newId = DB::Aowow()->query('INSERT IGNORE INTO ?_account (`extId`, `user`, `passHash`, `displayName`, `email`, `joinDate`, `allowExpire`, `prevIP`, `prevLogin`, `locale`, `status`, `userGroups`) VALUES (?d, ?, "", ?, "", UNIX_TIMESTAMP(), 0, ?, UNIX_TIMESTAMP(), ?d, ?d, ?d)',
|
||||||
$extId,
|
$extId,
|
||||||
$name,
|
$name,
|
||||||
Util::ucFirst($name),
|
Util::ucFirst($name),
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<table align="center">
|
<table align="center">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><?=Lang::account('user').Lang::main('colon'); ?></td>
|
<td align="right"><?=Lang::account('user').Lang::main('colon'); ?></td>
|
||||||
<td><input type="text" name="username" value="<?=$this->user; ?>" maxlength="16" id="username-generic" style="width: 10em" /></td>
|
<td><input type="text" name="username" value="<?=$this->user; ?>" id="username-generic" style="width: 10em" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><?=Lang::account('pass').Lang::main('colon'); ?></td>
|
<td align="right"><?=Lang::account('pass').Lang::main('colon'); ?></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user