diff options
author | friendica <info@friendica.com> | 2014-07-10 19:29:51 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-07-10 19:29:51 -0700 |
commit | 83ad5328c8b2ec3213a6368ed2203422c36435ff (patch) | |
tree | e491c161e99233c5934ea8c2a70eb3d4c1462e6e | |
parent | 9a96ae041f7536e320ae009ba48a5363361c38b6 (diff) | |
download | volse-hubzilla-83ad5328c8b2ec3213a6368ed2203422c36435ff.tar.gz volse-hubzilla-83ad5328c8b2ec3213a6368ed2203422c36435ff.tar.bz2 volse-hubzilla-83ad5328c8b2ec3213a6368ed2203422c36435ff.zip |
doco
-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 |