yes i tried that but the problem still persists.
I think it may have something wrong in the code i wrote but i cant seem to
find it
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help othe
Have you tried moving the line
parent::beforeFilter()
below the lines where you set the AuthComponent variables (or possibly
removing it alltogether)? It may be that the AuthComponent's
loginAction is being "processed" in the AppController's
beforeFilter(), before the userScope is being set in
User 1 would not be allowed to login.
User 2 would be allowed to login.
userScope is usually used for things like email activation (If the user
clicks the private link in the email, it goes to a unique url, which then
sets the userScope to 1 from 0 and that user can then login)
On 11 February 201
I dont wanna use ACL. I was under the impresion if I had a db row that had
usernamepassword admin
user1 pass1 0
user2 pass2 1
by using Auth->userScope
- user1 would be denied
- user2 would be granted acess
--
Our newest site for the community:
Hi,
I think you are talking about ACL, not
authentication. $this->Auth->userScope used as condition while doing login
and it doesn't provide mechanism to access or deny particular user to
particular page.
Hope that helps.
Amit Badkas
PHP Applications for E-Biz: http://www.sanisoft.com
On Fri
Ok so the problem is that i have users who are admins and users who are not.
but the users who dont have admin acess which is represent by 0 on the db
still get on it
//Database
DB T Schema:
id
username varchar
password varchar
admin tiny_int(1)
//Controller