You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/05/28 22:13:15 UTC

[13/26] 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/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/master
Commit: cc70ac7f2c667dab4819a820376650c09323ce14
Parents: fde4aa6
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri May 8 15:33:46 2015 +0000
Committer: Dave Brondsema <db...@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':