php - Joomla 3.2 How to edit Login Module? -


requirement

I'm just starting to study Joomla and What I have to do is to calculate the number of failed logins and show a div or a captcha after the 5th failed login.

Whatever I tried

I tried to find out the extensions that are as per the requirement (some coding without me) but unfortunately, all Extensions start doing something else (like send an email to unsuccessful attempts, etc.).

So I have decided to edit the existing login module here i here

  extends class UsersControllerUser UsersController {public function Login () {// code here}}   

I really do not fully understand Joomla's idea, but if I want to do it in a "barbarous" way, So I definitely ask a question to get involved / update every unsuccessful attempt The S & lt; Prefix & gt; Column under the _users table.

Question

  1. Is this the right way to do or is there any other "Joomla" way of doing this?
  2. If I was doing this, then is it okay to add a column manually to the table above it? (I'm asking because if I do this, maybe some code will stop working due to missing / new columns etc.)

    Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -