掲示板

How to block user by Admin

10年前 に Guru patil によって更新されました。

How to block user by Admin

Regular Member 投稿: 163 参加年月日: 13/04/19 最新の投稿
Hi All,


I want to block the user, so that it wont be allowed to login.

Suppose xyz user is registered and he is performing some unusual operation., then admin wants to block the user and xyz should not be allowed to login.
Admin can unblock the user.

How this can be achieved.
thumbnail
10年前 に Jignesh Vachhani によって更新されました。

RE: How to block user by Admin

Liferay Master 投稿: 803 参加年月日: 08/03/10 最新の投稿
Guru patil:
Hi All,


I want to block the user, so that it wont be allowed to login.

Suppose xyz user is registered and he is performing some unusual operation., then admin wants to block the user and xyz should not be allowed to login.
Admin can unblock the user.

How this can be achieved.


I think you can simply disable that user from control panel.
thumbnail
10年前 に Tonu Sri によって更新されました。

RE: How to block user by Admin

Regular Member 投稿: 197 参加年月日: 11/04/15 最新の投稿
Hi Guru,

As you mentioned that you want to block the user, If he is performing some unusual operation.

You can write your event where you can trigger a class which set the user's lockout attribute.

For more information, you can refer Control Panel > Password Policies. Set lockout enabled for 2-3 wrong password attempt.

Once user will enter the wrong password 3 times, Liferay set the lockout field of User table as 1. After that user cannot login into Liferay till Admin unlock it.

I hope this info will help you.

Thanks:
Tonu
10年前 に Guru patil によって更新されました。

RE: How to block user by Admin

Regular Member 投稿: 163 参加年月日: 13/04/19 最新の投稿
Thanks Tonu it is very helpful.

And another thing found in User and Organization that we can de-activate the user and activate the user.