mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +08:00
Installer: Fix password confirmation
This commit is contained in:
parent
312d964f91
commit
98fe2120e9
|
@ -16,6 +16,7 @@ use Flarum\Core\Users\User;
|
|||
use Flarum\Core\Groups\Group;
|
||||
use Flarum\Core\Groups\Permission;
|
||||
use Illuminate\Contracts\Foundation\Application;
|
||||
use Illuminate\Support\Arr;
|
||||
use PDO;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
|
@ -259,7 +260,7 @@ class InstallCommand extends Command
|
|||
|
||||
User::unguard();
|
||||
|
||||
$user = new User($admin);
|
||||
$user = new User(Arr::except($admin, 'password_confirmation'));
|
||||
$user->is_activated = 1;
|
||||
$user->join_time = time();
|
||||
$user->save();
|
||||
|
|
Loading…
Reference in New Issue
Block a user