Revision 02c1f22a

b/snf-astakos-app/astakos/im/views/target/__init__.py
108 108
    provider = auth.get_provider(provider_module, request.user, userid,
109 109
                                 **provider_data)
110 110

  
111
    from_login = request.REQUEST.get('from_login', False)
112
    if from_login:
113
        messages.error(request, provider.get_invalid_login_msg)
114
        return HttpResponseRedirect(reverse('login'))
115

  
111 116
    # user wants to add another third party login method
112 117
    if third_party_key:
113
        messages.error(request, provider.get_invalid_login_msg)
114 118
        return HttpResponseRedirect(reverse('login') + "?key=%s" %
115 119
                                    third_party_key)
116 120

  

Also available in: Unified diff