Update Index.php

This commit is contained in:
全栈小学生 2023-09-07 09:14:04 +08:00
parent 897938d7fb
commit 932970b01f

View File

@ -287,10 +287,11 @@ class Index extends BaseInstall
$user = ( new SysUser() )->where([ [ 'uid', '=', 1 ] ])->findOrEmpty();
if (!$user->isEmpty()) {
if ($user->isEmpty()) {
$user->save([
'username' => $username,
'password' => create_password($password),
'is_admin'=>1
]);
}