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 2014/10/15 12:56:22 UTC
[12/12] git commit: [#7704] ticket:662 Don't try to log in if user
isn't active after registration
[#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 <je...@gmail.com>
Authored: Wed Oct 15 11:49:16 2014 +0300
Committer: Igor Bondarenko <je...@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('/')