[aida] WebAdminApp actionLoginLogin

Stefan Schmiedl s at xss.de
Sat Jun 9 20:03:24 CEST 2007


Besides a funny name, this method can be made more flexible by
changing the fina line from

  ifFalse: [self redirectTo: '/']

to

  ifFalse: [self redirectTo: self site afterLogin]

The semantics of AidaSite>>afterLogin: changes a little bit, too:
Calling

  site afterLogin: #lastPage

lets you continue after login where you left off last time.

Calling

  site afterLogin: '/whatever.html'

takes you to a starting page which can be redefined easily especially
during development. Saves some mouseclicking when you're doing manual
testing.

s.


More information about the Aida mailing list