* modernize extAuth template and add more help text * type declarations + cleanup in kernel * respect max col size when logging errors
22 lines
605 B
PHP
22 lines
605 B
PHP
<?php
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
|
|
function extAuth(string &$usernameOrEmail, string $password, int &$userId = 0, int &$userGroup = -1) : int
|
|
{
|
|
/*
|
|
insert some auth mechanism here
|
|
|
|
set usernameOrEmail to a valid username, do not pass back the email if used for login
|
|
set userId to uid from external auth provider for identification
|
|
(optional) set userGroup to a valid userGroup (see U_GROUP_* defines)
|
|
|
|
return an AUTH_* result (see defines)
|
|
*/
|
|
|
|
return AUTH_INTERNAL_ERR;
|
|
}
|
|
|
|
?>
|