Re: My own logon page
"Michael Nash JGlobal.com" <[email protected]> Fri, 14 May 2004 08:17:17 -0400
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Organization | JGlobal |
| Message-ID | <20040514081717.6ca3676a@jglobal> |
Nathan:
A couple of things that may help you do this (and yes, quick answer is that it's quite possible):
The "register.verify-login" model is handy for this. It will check if someone is logged in, and if they are *not*, it redirects to the login model.
Sequences are very handy for changing UIs: E.g. if you want a different login display page, but use the same model:
<sequence id="my.prompt-login">
<model name="register.prompt-login">
<attribute name="forward" value="myOwnLoginPage"/>
</model>
</sequence>
That kind of thing.
To use this, you would do something like this:
<sequence id="my.secured-place-seq">
<model name="register.verify-login" return="ifinput">
<parameter name="loginmodel" value="my.prompt-login"/>
</model>
<model name="my.secured-place"/>
</sequence>
Now, when a user calls "my.secured-place-seq", verify-login will see if they are logged in. If they're not, they'll be redirected to my.prompt-login (the customized sequence of the usual prompt-login).
There are a couple of ways to do this, but there's one...
Mike
> Is there a configurable way to just plugin my own Logon page. What I really
> want to know is: say I want to secure my Model with
> SecurableStandardLogEnabledModel. If a user of my site tries to access this
> model, I want to direct them to a logon page if they aren't logged in. Right
> now it will just redirect them to Keels default "access is denied" page that
> has a link to Keel's logon page. Is there any easy way to override this
> behavior to direct users to my logon page?
>
> Thank you,
> Nathan
>
> _______________________________________________
> User mailing list
> [email protected]
> http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
--
Michael Nash
JGlobal Ltd
Next-Generation Web Application Development and Open Source Support
http://www.jglobal.com
Bahamas Commerce and Trade
Offshore eCommerce Hosting and Business Services
http://www.bahamascommerce.com