I am using Auth Component. I am setting $this->Auth->loginError in the beforeFilter. But i have another posibility. If the user entered username and password is correct but User.status = 'pending' how can i can show a different message. i am using $this->Auth->userScope to set that. but how to show different $this->Auth->loginError for these two posibilities.
- Username and Password = correct but Status = pending
- Either Username or Password = incorrect but status = active
there are the two posibilities.