Detect user lockout period in custom login page

Detect user lockout period in custom login page

by Christos Savva -
Number of replies: 0

Hello Moodlers

I was wondering if it is possible to detect that a user is under lockout because of too many login attempts.

I have a custom login page and I would like to inform users that they are under lockout and they have to wait 30 minutes.

I can see that there are 3 errorcodes in /login/index.php

1 cookiesnotenabled

2 invalidusername

3 invalidlogin

but there is nothing if the user account is under lockout. Is there any other way to let the user know that his/her account is under lockout?


Kind regards

Christos

Average of ratings: -