Revision 0a569195 snf-astakos-app/astakos/im/target/shibboleth.py

b/snf-astakos-app/astakos/im/target/shibboleth.py
54 54
    SHIB_SESSION_ID = "HTTP_SHIB_SESSION_ID"
55 55

  
56 56
@requires_anonymous
57
def login(request,  backend=None, on_login_template='im/login.html', on_creation_template='im/signup.html', extra_context={}):
57
def login(request,  backend=None, on_login_template='im/login.html', on_creation_template='im/third_party_registration.html', extra_context={}):
58 58
    tokens = request.META
59 59
    
60 60
    try:
......
93 93
            if not backend:
94 94
                backend = get_backend(request)
95 95
            form = backend.get_signup_form(provider='shibboleth', instance=user)
96
        except (Invitation.DoesNotExist, ValueError), e:
96
        except Exception, e:
97 97
            form = SimpleBackend(request).get_signup_form(provider='shibboleth', instance=user)
98 98
            messages.add_message(request, messages.ERROR, e)
99 99
        form.data.update({'third_party_identifier':eppn, 'realname':realname,
100 100
                          'affiliation':affiliation})
101 101
        return render_response(on_creation_template,
102 102
                               signup_form = form,
103
                               provider = 'shibboleth',
103 104
                               context_instance=get_context(request, extra_context))

Also available in: Unified diff