Skip to content

Commit 1b026fa

Browse files
author
epriestley
committedDec 2, 2013
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
1 parent f79975b commit 1b026fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎scripts/user/account_admin.php

+3
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@
178178
->setAddress($create_email)
179179
->setIsVerified(1);
180180

181+
// Unconditionally approve new accounts created from the CLI.
182+
$user->setIsApproved(1);
183+
181184
$editor->createNewUser($user, $email);
182185
} else {
183186
if ($verify_email) {

0 commit comments

Comments
 (0)
Failed to load comments.