Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 9a1ad5d

Browse files
authored
JS user login fail process example added
1 parent 8b8d626 commit 9a1ad5d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

processes/on-user-login-fail.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
die('Sorry, not logged in.');
44
}
55
// Purpose: This file is run when a login fail occurs
6-
// Langs: PHP only
6+
// Langs: PHP (tho can concat JS within $doNext string, see below)
77
// Example:
88
// $fh = fopen(dirname(__FILE__)."/../user-access.log", 'a');
99
// fwrite($fh, "FAIL ".date("D dS M Y h:i:sa").": ".$_POST['username']."\n");
1010
// fclose($fh);
11+
12+
// If JS is needed, add within $doNext string below, eg $doNext .= ";alert('user login failed');";
13+
$doNext .= "";

0 commit comments

Comments
 (0)