[Zope] Authentication without management screens?

tom smith tom@othermedia.com
Tue, 18 Sep 2001 13:45:50 +0100


Hi,

Is there a way to open the standard authentication dialog then redirect to a
given url, so that somebody can be logged in, but not necessarily see (by
default) the management screens?

Kind of like this...

 theurl = context.REQUEST['theurl'] #passed in querystring

 if authenticated_user():
    return RESPONSE.redirect(theurl)
 else:
    return RESPONSE.AUTHENTICATION_DIALOG

Cheers

tom


-- 
tom smith    |    tom@othermedia.com    |    http://www.othermedia.com/blog
0207 089 5959   |   Floor 3, The Pavilion, Newhams Lane, London SE1 3UZ