Browse Source

Documented loginpage_hook()

Brendan Abolivier 8 years ago
parent
commit
46da2f61e3
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      auth.php

+ 5
- 0
auth.php View File

69
 		self::__construct();
69
 		self::__construct();
70
 	}
70
 	}
71
 
71
 
72
+	/* Login page hook
73
+	*
74
+	* Called before displaying the login form, is used to authenticate the user
75
+	* and bypass the form.
76
+	*/
72
 	function loginpage_hook() {
77
 	function loginpage_hook() {
73
 		global $DB, $login, $CFG;
78
 		global $DB, $login, $CFG;
74
 		$placeholders[0] = "/{{firstname}}/";
79
 		$placeholders[0] = "/{{firstname}}/";