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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user