mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Unconditionally approve bin/accountadmin accounts
Summary: Some oldschool users create accounts via bin/accountadmin, which messes up the first-time setup process. Auto-approve these accounts, as this better aligns with user expectation. Auditors: btrahan
This commit is contained in:
parent
f79975b340
commit
1b026fa629
1 changed files with 3 additions and 0 deletions
|
@ -178,6 +178,9 @@ $user->openTransaction();
|
|||
->setAddress($create_email)
|
||||
->setIsVerified(1);
|
||||
|
||||
// Unconditionally approve new accounts created from the CLI.
|
||||
$user->setIsApproved(1);
|
||||
|
||||
$editor->createNewUser($user, $email);
|
||||
} else {
|
||||
if ($verify_email) {
|
||||
|
|
Loading…
Reference in a new issue