On Oct 24, 2:16 pm, garence <[EMAIL PROTECTED]> wrote:
> That's all well and good. But here's the rub - an employee must login
> in order to interface with the blog, and upon successful login
> ("goodLogin" result), the user gets redirected to a hard-coded event
> ("blog.viewEntries"). For the moment, anyway:
>
Gary,
My AuthenticationController is called onRequestStart to verify logged
in status/etc. If the user needs to be logged in and isn't, I go to
the login form. The method pseudo-code looks like:
<if AuthenticationRequired>
<if NOT loggedIn>
recordOriginalRequest(arguments.event); // sticks it in session,
application, whatever scope
arguments.event.addResult(loginRequired);
<else>
forwardToOriginalRequest(arguments.event);
</if>
</if>
Then I have a doAuthenticateByPassword method called when the login
form is submitted:
<if NOT loggedIn>
<if svc.authenticateByPassword(username, password)>
// do various things to set up the session, etc
forwardToOriginalRequest() // gets value back from session/app
scope and does a cflocation in my case
</if>
</if>
You can do this to capture all of your URL parameters as well as
needed. Hope that helps,
Brian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---