set user to deactivate when he attempts the wrong password more than 3 time

Permalink
hello everyone,

I want to add functionality on my concrete5 web application when user attempts the wrong password more than 3 times, his account will be blocked.

currently, system blocks the user IP when he gives the wrong password more than 3 times.

let me know if the concrete has any built-in functionality

Thanks, AbdulQayym

View Replies: View Best Answer
mesuva replied on at Permalink Reply
mesuva
Try the dashboard page at /index.php/dashboard/system/registration/deactivation

On there there's an 'Automatic User Deactivation' section at the bottom, and an option to 'Automatically deactivate users after failed login attempts.'
abdulqayyum replied on at Permalink Reply
Thank you very much for replay the problem was solved.

your given information is very useful, can you please tell me one more adjustment if I want to add functionality "send an email when user deactivated"

is concrete5 provide this functionality or we have to add custom?
mesuva replied on at Permalink Best Answer Reply
mesuva
I don't think there is a function built in to send an email, however it does appear that an event is fired, called 'on_before_user_deactivate'. You would be able to hook into that event and run whatever code you need including sending an email.

Seehttps://documentation.concrete5.org/developers/framework/application...
abdulqayyum replied on at Permalink Reply
Thank you very much my problem was solved.