WebAdminApp actionLoginLogin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

WebAdminApp actionLoginLogin

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

Reply | Threaded
Open this post in threaded view
|

WebAdminApp actionLoginLogin

Janko Mivšek
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