Ignore:
Timestamp:
18 May 2009, 10:15:40 (16 years ago)
Author:
uli
Message:

Emit message on login/logout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/authentication.py

    r4135 r4141  
    4646        self.camefrom = self.request.form.get('camefrom', '')
    4747        if SUBMIT is not None:
     48            self.flash('You logged in.')
    4849            self.redirect(self.camefrom)
    4950
     
    5758        if SUBMIT is None:
    5859            return
     60        self.flash('You logged in.')
    5961        self.redirect(self.url(grok.getSite()))
    6062   
     
    6870        if SUBMIT is None:
    6971            return
     72        self.flash('You logged in.')
    7073        self.redirect(self.url(grok.getSite()))
    7174
     
    101104            # without authentication (updating other viewlets on the
    102105            # page)
     106            self.view.flash("You're logged out.")
    103107            self.view.redirect(self.view.url())
    104108
Note: See TracChangeset for help on using the changeset viewer.