X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fcurrent_user.inc;h=82c8daaf619ee1e46829bc8895c6bfc3be1dd12a;hb=6351305b2b0e5782804ab4d9e3db5f84b671d6f2;hp=c3d162e037e1d440175cfd6f6118f0a6c2b01d46;hpb=edbd85d34374e87dcc0a0cc01d21ca4e4aabf1ac;p=fa-stable.git diff --git a/includes/current_user.inc b/includes/current_user.inc index c3d162e0..82c8daaf 100644 --- a/includes/current_user.inc +++ b/includes/current_user.inc @@ -32,6 +32,7 @@ class current_user var $old_db; var $logged; var $ui_mode = 0; + var $login_attempt=0; var $prefs; var $cur_con; // current db connection (can be different from $company for superuser) @@ -134,6 +135,7 @@ class current_user $this->email = @$myrow["email"]; update_user_visitdate($this->username); $this->logged = true; + $this->login_attempt=0; $this->last_act = time(); $this->timeout = session_timeout(); flush_dir(user_js_cache()); // refresh cache on login