Commit c3e206582a90aff3715e22b7aa1a71b5e9eeef10
1 parent
8f879168
Exists in
master
Enviado IP atual, ao gravar log acesso usuário.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
ieducar/intranet/include/clsControlador.inc.php
@@ -177,7 +177,7 @@ class clsControlador | @@ -177,7 +177,7 @@ class clsControlador | ||
177 | $_SESSION['tipo_menu'] = $user['tipo_menu']; | 177 | $_SESSION['tipo_menu'] = $user['tipo_menu']; |
178 | @session_write_close(); | 178 | @session_write_close(); |
179 | 179 | ||
180 | - Portabilis_Utils_User::logAccessFor($user['id']); | 180 | + Portabilis_Utils_User::logAccessFor($user['id'], $this->getClientIP()); |
181 | Portabilis_Utils_User::destroyStatusTokenFor($user['id'], 'redefinir_senha'); | 181 | Portabilis_Utils_User::destroyStatusTokenFor($user['id'], 'redefinir_senha'); |
182 | 182 | ||
183 | $this->logado = true; | 183 | $this->logado = true; |
@@ -254,6 +254,7 @@ class clsControlador | @@ -254,6 +254,7 @@ class clsControlador | ||
254 | } | 254 | } |
255 | else | 255 | else |
256 | $ip = $_SERVER['REMOTE_ADDR']; | 256 | $ip = $_SERVER['REMOTE_ADDR']; |
257 | + | ||
257 | return $ip; | 258 | return $ip; |
258 | } | 259 | } |
259 | 260 |