[aida] WebAdminApp actionLoginLogin

Janko Mivšek janko.mivsek at eranova.si
Tue Jun 12 10:52:39 CEST 2007


Hi Stefan,

I just did as you suggested and also changed method name to #actionLogin 
to be e bit less funny :) Thanks for a suggestion!

Best regards
Janko

Stefan Schmiedl wrote:
> 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.
> 

-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Aida mailing list