1
0
Fork 0
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:
epriestley 2013-12-02 06:50:51 -08:00
parent f79975b340
commit 1b026fa629

View file

@ -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) {