do not force register link to redirect to the login page (#2804)

This commit is contained in:
Frédéric Péters 2013-05-08 15:43:41 +02:00
parent da7bdbd6ab
commit 2f8eb3a08c
1 changed files with 1 additions and 6 deletions

View File

@ -619,13 +619,8 @@ class AlternateRegisterDirectory(OldRegisterDirectory):
method = ident_methods[0]
else:
method = 'password'
return qommon.ident.register(method)
if method == 'idp':
root_url = get_publisher().get_root_url()
return redirect('%slogin' % root_url)
return OldRegisterDirectory._q_index(self)
return qommon.ident.register(method)
OldLoginDirectory = wcs.root.LoginDirectory