allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [31/50] [abbrv] allura git commit: [#7868] ticket:760 Fix verification disabled condition
Date Wed, 27 May 2015 11:58:03 GMT
[#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 <jetmind2@gmail.com>
Authored: Fri May 8 15:33:46 2015 +0000
Committer: Igor Bondarenko <jetmind2@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':


Mime
View raw message