From 83b99c47d27f6260422f8c0f7d6483a816397a89 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 23 Feb 2025 01:22:46 +0100 Subject: [PATCH] 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 --- includes/user.class.php | 2 +- template/pages/acc-signIn.tpl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/user.class.php b/includes/user.class.php index e453797a..7c826fa8 100644 --- a/includes/user.class.php +++ b/includes/user.class.php @@ -324,7 +324,7 @@ class User 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, $name, Util::ucFirst($name), diff --git a/template/pages/acc-signIn.tpl.php b/template/pages/acc-signIn.tpl.php index c17c943f..730da6f5 100644 --- a/template/pages/acc-signIn.tpl.php +++ b/template/pages/acc-signIn.tpl.php @@ -38,7 +38,7 @@ - +