Re: [Zope] logging out (not zmi)

2005-09-28 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2005-9-27 18:11 +0100:
If i'm logged in as testuser and want to log in with a different user
name, whats the right way of doing it?
this is on zope 2.7

When you are using HTTP authentication, then logging out is difficult
(and nasty).

The following DTML method helps you to log out:

dtml-var standard_html_header
h2dtml-var title_or_id dtml-var document_title/h2
p
dtml-if AUTHENTICATED_USER.getUserName() != 'Anonymous User'
  dtml-raise Unauthorized/dtml-raise
/dtml-if
You have been logged out.
/p
dtml-var standard_html_footer


When you call it via an URL, you will get a login dialog.
Put in any name and a *WRONG* password.
When you finish the dialog, you should see You have been logged out.
After that, you can login again in the normal way.

Note, that in case you use correct login information
(a right password), then the login dialog will come again...


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] logging out (not zmi)

2005-09-27 Thread Lennart Regebro
On 9/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi all,
 If i'm logged in as testuser and want to log in with a different user
 name, whats the right way of doing it?
 this is on zope 2.7

You select Log out of ZMI. :-)

Unless you use CMF. Or some special user folder.

Oh, and it won't work on IE. It refuses to log out.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] logging out (not zmi)

2005-09-27 Thread Robert Boyd
On 9/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:Hi all,If i'm logged in as testuser and want to log in with a different user
name, whats the right way of doing it?this is on zope 2.7thankspaul
How did you log in? Through an HTML form, with cookies? Through the HTTP Basic Auth pop-up window?

Rob
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )