[Zope] GUF

Aleksander Salwa ololo@zeus.polsl.gliwice.pl
Sun, 13 Aug 2000 15:51:50 +0200 (CEST)


On Fri, 11 Aug 2000, Mathias Bengtsson wrote:

> Does anybody know how the login is handled by GUF. I use cookie
> authentication and I get the loginptomt when I try to access a page that
> has authenticate permissions. But when I try to login I don't know how
> to get the user logged i.e I don't know how to set the cookie. Can
> anybody help me ?

Why do you need to set cookie on your own ? In typical case GUF sets it
for you if it had succesfully authenticated new user (your method
userAuthenticate has returned '1').
Anyway, probably it will work if you set this manually. The cookie is
named (AFAIR) '_guf', and has some random-looking content - a key
identifying user. You can look in source to see, how this content is
computed.


ololo@zeus.polsl.gliwice.pl

/--------------------------------------\
| `long long long' is too long for GCC |
\--------------------------------------/