|
Why do you need a method to a login
screen? Wouldn’t a login screen be more of a display compared to a
logic object? You need to think about the objects involved,
rather than the processes. You have a user… What does
that user want to do? Authenticate, or Login. Object = theUser Method = public Authenticate(Login, Password) as Bool This way, you can “ask” the user
if they are logged in when you need to check the authentication of a certain
page. This user object can also hold their name, email, access keys, if
they are authenticated, their login, etc.. So, I would have the following in the page
that the login form posts to : If
(theUser.Authenticate(form.login, form.password)) {
// login is good, do what we need to do here } Else {
// login is bad. Tell the user and re-ask for username / password here } Hope this helps, at least a little bit. -Nick From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Adams Hi everyone, You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected] |
- RE: [CFCDev] OOP and creating a login section quetwo
- Re: [CFCDev] OOP and creating a login section Nathan Dintenfass
- Re: [CFCDev] OOP and creating a login section Haikal Saadh
- RE: [CFCDev] OOP and creating a login section Nando
- Re: [CFCDev] OOP and creating a login secti... Mike Tangorre
- Re: [CFCDev] OOP and creating a login s... Joe Rinehart
- Re: [CFCDev] OOP and creating a login secti... Stephen Adams
