allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [12/12] git commit: [#7704] ticket:662 Don't try to log in if user isn't active after registration
Date Wed, 15 Oct 2014 10:56:22 GMT
[#7704] ticket:662 Don't try to log in if user isn't active after registration


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/40f21b4c
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/40f21b4c
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/40f21b4c

Branch: refs/heads/je/42cc_7704
Commit: 40f21b4c589e716d9e45e5b5351ec0317134e7b3
Parents: 6a17030
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Wed Oct 15 11:49:16 2014 +0300
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Wed Oct 15 11:49:16 2014 +0300

----------------------------------------------------------------------
 Allura/allura/controllers/auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/40f21b4c/Allura/allura/controllers/auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/auth.py b/Allura/allura/controllers/auth.py
index 6d95610..68bb0e6 100644
--- a/Allura/allura/controllers/auth.py
+++ b/Allura/allura/controllers/auth.py
@@ -229,12 +229,12 @@ class AuthController(BaseController):
                  display_name=display_name,
                  password=pw,
                  pending=require_email))
-        plugin.AuthenticationProvider.get(request).login(user)
         if require_email:
             em = user.claim_address(email)
             em.send_verification_link()
             flash('User "%s" registered. Verification link was sent to your email.' % username)
         else:
+            plugin.AuthenticationProvider.get(request).login(user)
             flash('User "%s" registered' % username)
         redirect('/')
 


Mime
View raw message