mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 13:05:50 +08:00
parent
42dfcf3e40
commit
7092b3bfff
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
namespace Flarum\Install\Console;
|
namespace Flarum\Install\Console;
|
||||||
|
|
||||||
|
use Carbon\Carbon;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Console\AbstractCommand;
|
use Flarum\Console\AbstractCommand;
|
||||||
use Flarum\Database\DatabaseMigrationRepository;
|
use Flarum\Database\DatabaseMigrationRepository;
|
||||||
|
@ -294,7 +295,7 @@ class InstallCommand extends AbstractCommand
|
||||||
'username' => $admin['username'],
|
'username' => $admin['username'],
|
||||||
'email' => $admin['email'],
|
'email' => $admin['email'],
|
||||||
'password' => (new BcryptHasher)->make($admin['password']),
|
'password' => (new BcryptHasher)->make($admin['password']),
|
||||||
'joined_at' => time(),
|
'joined_at' => Carbon::now(),
|
||||||
'is_email_confirmed' => 1,
|
'is_email_confirmed' => 1,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user