I'm trying to create my own moodle authentication plugin (/moodle/auth/manualspace/auth.php).
Inside it I want to call a function, but during execution an error message is displayed.
Can someone give a light?
Message error:
Exceção - Call to undefined function exibe_msg()
Code:
public function exibe_msg() {
echo "
<html>
<title>Problem</title>
<body>
<h1>You're not allowed...</h2>
</body>
</html>";
}
function user_authenticated_hook($user, $username, $password) {
global $CFG;
exibe_msg();
require_logout();
exit(0);
}
Thanks in advance
Roberto