Use the authorization adapters. For example if you use the Controller
authorization adapter you would have this in your AppController:
public funciton isAuthorized($user) {
if ($user is disabled and this is not the help page) {
redirect to help page;
}
return true;
}
On Wednesday, August 13, 2014 1:29:19 PM UTC+2, Jipson Thomas wrote:
>
> Hi,
> Does anyone know any option to block the access of a suspended user in the
> cakephp 3 website using default authorization component. Instead of not
> letting them to log in , I want them to log in and show a message to
> contact administrator as they are suspended. Please let me know if anyone
> know a solution for this.
> Regards,
> Jipson
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.