Commit 44fef2e9 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Revert "astakos: Improve invalid login handling"

This reverts commit 02c1f22a0f7396a7b2211677db78247586e10805.
parent 3235a34b
......@@ -108,13 +108,9 @@ def handle_third_party_signup(request, userid, provider_module,
provider = auth.get_provider(provider_module, request.user, userid,
**provider_data)
from_login = request.REQUEST.get('from_login', False)
if from_login:
messages.error(request, provider.get_invalid_login_msg)
return HttpResponseRedirect(reverse('login'))
# user wants to add another third party login method
if third_party_key:
messages.error(request, provider.get_invalid_login_msg)
return HttpResponseRedirect(reverse('login') + "?key=%s" %
third_party_key)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment