aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-10 19:29:51 -0700
committerfriendica <info@friendica.com>2014-07-10 19:29:51 -0700
commit83ad5328c8b2ec3213a6368ed2203422c36435ff (patch)
treee491c161e99233c5934ea8c2a70eb3d4c1462e6e /include/auth.php
parent9a96ae041f7536e320ae009ba48a5363361c38b6 (diff)
downloadvolse-hubzilla-83ad5328c8b2ec3213a6368ed2203422c36435ff.tar.gz
volse-hubzilla-83ad5328c8b2ec3213a6368ed2203422c36435ff.tar.bz2
volse-hubzilla-83ad5328c8b2ec3213a6368ed2203422c36435ff.zip
doco
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php8
1 files changed, 7 insertions, 1 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'",