From 83ad5328c8b2ec3213a6368ed2203422c36435ff Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 10 Jul 2014 19:29:51 -0700 Subject: doco --- include/auth.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/auth.php b/include/auth.php index 0baa80c2a..8e02b7b4f 100644 --- a/include/auth.php +++ b/include/auth.php @@ -36,8 +36,14 @@ function nuke_session() { function account_verify_password($email,$pass) { $email_verify = get_config('system','verify_email'); + $register_policy = get_config('system','register_policy'); - if($email_verify && $record['account_flags'] & ACCOUNT_UNVERIFIED) + // Currently we only verify email address if there is an open registration policy. + // This isn't because of any policy - it's because the workflow gets too complicated if + // you have to verify the email and then go through the account approval workflow before + // letting them login. + + if(($email_verify) && ($register_policy == REGISTER_OPEN) && ($record['account_flags'] & ACCOUNT_UNVERIFIED)) return null; $r = q("select * from account where account_email = '%s'", -- cgit v1.2.3