Skip to content

Commit d466b94

Browse files
committed
More use of the auth_log fucction
1 parent fc3ef84 commit d466b94

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

interface/web/login/index.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ function process_login_request(app $app, &$error, $conf, $module)
175175
if ($app->db->errorMessage != '') $error .= '<br />'.$app->db->errorMessage != '';
176176

177177
$app->plugin->raiseEvent('login_failed', $username);
178-
//* Save failed login message to var
179-
$authlog = 'Failed login for user \''.$username.'\' from '.$_SERVER['REMOTE_ADDR'].' at '.date('Y-m-d H:i:s');
180-
$authlog_handle = fopen($conf['ispconfig_log_dir'].'/auth.log', 'a');
181-
fwrite($authlog_handle, $authlog."\n");
182-
fclose($authlog_handle);
178+
$app->auth_log('Failed login for user \''. $username .'\ from '. $_SERVER['REMOTE_ADDR'] .' at '. date('Y-m-d H:i:s');
183179
}
184180
}
185181

0 commit comments

Comments
 (0)