I have database where only login name, no password field. I need auto login, no need to submit login.php. When user access my site just check login name, if have permission then go to main page, else go to register page. How can I do this?
I omit the password validation. I need to login just check the login name automatically and go to the home page if user have no permission then go to register page. Just tell me where i need to change.
I don’t want to submit login page. If any user go to my site, database automatically check the username, if he has permission( loginName) then go to main page otherwise redirect to register page. I think I need to change the CWebUser.php page or if you have any idea plz let me know.
I did it. My question is, I don’t want to submit Login form. It will check automatically (if user already in the database) when User browse my site then go to main page otherwise go to register page.
Yes you re right. I m using Global login and I know the variable name $testName[5]. I want to check this $testName5 with my own database. If that Global login user ( $testName[5]) has access then go to main page otherwise redirect to register page.
you might be able to create a base controller, overide the beforeAction function with login command. And modify all other controller to extend your base controller.
This is the approach that I used when creating this facebook connect authentication.
But, be warned, I just learn PHP several weeks ago. My solution might not the good one…