Is it possible to deactivate users by default in liferay when they sign up so that the administrator could approve/activate their accounts later on.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do this with a ModelListener for the User class – e.g. when a user is created first, your Listener should immediately set it to ‘deactivated’.
You do this easiest in a custom hook that you’d have to write (see the linked wiki article). Hooks are quite easy to create with Liferay’s plugin-sdk.