diff options
-rw-r--r-- | include/auth.php | 8 | ||||
-rw-r--r-- | version.inc | 2 |
2 files changed, 8 insertions, 2 deletions
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'", diff --git a/version.inc b/version.inc index 60ad0c69b..f9ffd667f 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-07-09.731 +2014-07-10.732 |