fix(web): school default value
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-07 06:31:09 +08:00
parent 2a69d50d6d
commit 70e3fbb93e
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -57,7 +57,7 @@ class UOJUser {
$info = [ $info = [
'username' => $user['username'], 'username' => $user['username'],
'email' => $user['email'], 'email' => $user['email'],
'school' => $user['school'], 'school' => $user['school'] ?: '',
'password' => $password, 'password' => $password,
'svn_password' => uojRandString(20), 'svn_password' => uojRandString(20),
'register_time' => DB::now(), 'register_time' => DB::now(),