We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Proper way to make user authentication

Hello,

I'm trying to implement a user authentication in my already huge website. The problem is that the way i have it right now is not that smart..

Is there a way to make a user role like, "Guest", "User", "Moderator", "Admin", "Owner"

And in one file, make them allow to view the roles view, but only the roles view? I've been looking into this:

https://docs.phalcon.io/en/latest/reference/tutorial-invo-2.html

But I dont think that it's the best way, when i use $this->view->pick('index')

Hope you can help! :-)

You can see the Vokuro Project. I use VOKURO for that.