mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-26 22:40:45 +00:00
Update UserCreate.php
This commit is contained in:
parent
8059cf39ac
commit
330ed8ef82
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,8 @@ class UserCreate extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$this->info('Creating a new user...');
|
$this->info('Creating a new user...');
|
||||||
|
|
||||||
$o = $this->options();
|
$o = $this->options();
|
||||||
|
@ -84,6 +86,11 @@ class UserCreate extends Command
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strlen($password) < 6) {
|
||||||
|
$this->error('Must be 6 or more characters, please try again...');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
$is_admin = $this->confirm('Make this user an admin?');
|
$is_admin = $this->confirm('Make this user an admin?');
|
||||||
$confirm_email = $this->confirm('Manually verify email address?');
|
$confirm_email = $this->confirm('Manually verify email address?');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue