[Zope] trapping login errors/exceptions

Chris Withers chrisw@nipltd.com
Fri, 27 Oct 2000 10:00:58 +0100


Henny van der Linde wrote:

> In this construction the call to do_login always raises the exception
> Unauthorized instead of presenting the standard login screen.
> 
> How do I trap login errors in an elegant way?

You can't, with the standard Zope acl_users.

IIUC, LoginManager allows you to do exactly what you're talking about.

cheers,

Chris