[Zope] create Login/Logout functionality

Andreas Pakulat ap125@informatik.uni-rostock.de
Mon, 05 May 2003 11:19:46 +0200


--tKW2IUtsqtDRztdT
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 03.Mai 2003 - 17:38:10, Troy Farrell wrote:
> Look in the source for 'manage_zmi_logout' in=20
> zopedir/lib/python/App/Management.py

That doesn't help me much, I see that I can call manage_zmi_logout to
logout the user, but how do I get him to log in?

I don't think that I can do it with such a message box, as far as I can
see, this can only be done, by setting the permissions on the file. But
this doesn't work for me, as anybody should be able to view a certain
page, but only logged in users should see a link that points to an
edit-form

So the question is, which method to call if I have a username and a
password, I didn't find anything in the UserFolder API. I will try to
look further on the source of the API, but maybe someone can directly
point me to the right spot.

Andreas


> Troy
>=20
> Andreas Pakulat wrote:
> >Hi,
> >
> >I would like to have a login Link on the top of my page, but I don't
> >know how I can login a user. I have searched through the help, but
> >didn't find a method that causes the MessageBox, that appears if I go to
> >a /manage Url, to appear.=20
> >
> >And I also want the users to get logged of again.
> >
> >I know that I can write a dtml/zpt page and call a script with values
> >from a form, and then in the script set the Authenticated User if he
> >exists in the User Folder, but I don't see how to verify the password.
> >Also I really would like to have it with the messagebox and not a
> >separate form to fill in.
> >
> >Andreas
> >
>=20

--=20
Letzte Worte eines Flugkapit=E4ns:
  "Wir landen in wenigen Minuten planm=E4=DFig"

--tKW2IUtsqtDRztdT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+tiyyuekl0h+nrMIRAmsIAJ9tda1yUX1ldUz8FNBCqSBn3VzQ5wCgzAe0
YRz5nbvN5SYAYXMPBolzoOU=
=wj0L
-----END PGP SIGNATURE-----

--tKW2IUtsqtDRztdT--