I am looking for the best way how I can do user authentication in my JSF web project. I found this very good example from BalusC when overflowing (by the way, thanks to BalusC). But I do not understand this System.
I wrote a registration page. After registration, the user enters my database. But who can use j_security_check to verify a user from my database?
In my web project, I do not have a site for users and non-users. When a user logs in, so he sees more options, for example, he can publish text. Who can I check this out? Can I save a custom class with user data at login and check:
if(user != null){ <h:inputText value="User Only Text" id="text" /> }
But I think this method is not very elegant. Also my question is the best way to log in a user and show the actual user more options on the web page than not the user.
Thanks and sorry for my bad english.
source share