allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [20/39] allura git commit: [#7868] ticket:760 Fix verification disabled condition
Date Tue, 02 Jun 2015 20:07:11 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/cc70ac7f
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/cc70ac7f
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/cc70ac7f

Branch: refs/heads/hs/7825
Commit: cc70ac7f2c667dab4819a820376650c09323ce14
Parents: fde4aa6
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri May 8 15:33:46 2015 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu May 28 20:11:45 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/cc70ac7f/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