You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/05/27 13:58:03 UTC
[31/50] [abbrv] allura git commit: [#7868] ticket:760 Fix
verification disabled condition
[#7868] ticket:760 Fix verification disabled condition
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/05f00bca
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/05f00bca
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/05f00bca
Branch: refs/heads/ib/7868
Commit: 05f00bca4cafe5920f793fd1e3bf76b47cff80bc
Parents: 14fb673
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri May 8 15:33:46 2015 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Mon May 25 15:53:40 2015 +0000
----------------------------------------------------------------------
Allura/allura/lib/plugin.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/05f00bca/Allura/allura/lib/plugin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index 7b7961e..40cbcd7 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -719,7 +719,7 @@ class ProjectRegistrationProvider(object):
Otherwise returns False.
"""
- if asbool(config.get('project.verify_phone')):
+ if not asbool(config.get('project.verify_phone')):
return True
if security.has_access(neighborhood, 'admin', user=user)():
return True
@@ -727,13 +727,13 @@ class ProjectRegistrationProvider(object):
def verify_phone(self, user, number):
ok = {'status': 'ok'}
- if asbool(config.get('project.verify_phone')):
+ if not asbool(config.get('project.verify_phone')):
return ok
return g.phone_service.verify(number)
def check_phone_verification(self, user, request_id, pin, number_hash):
ok = {'status': 'ok'}
- if asbool(config.get('project.verify_phone')):
+ if not asbool(config.get('project.verify_phone')):
return ok
res = g.phone_service.check(request_id, pin)
if res.get('status') == 'ok':