[Zope-CMF] login programmatically

Ivan Cornell icornell@yahoo.com
Thu, 26 Apr 2001 17:14:14 +0100 (BST)


--- seb bacon <seb@jamkit.com> wrote:
> I need to log the user in as part of the the registration process,
> rather than have them click a link at the end.  I can't for the life
> of me work out how to do this.  Do I have to raise an Unauthorised
> error in order to trigger the login mechanism?  Can anyone help?
> 

Not sure, but you could try doing a RESPONSE.redirect('the url you
normally click on') at the end of the register method. This should work as
the userid/password are passed as get parameters.

Ivan

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie