mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Extend HTTP-Basic-Auth for Demo-Mode and easier testing
This commit is contained in:
@@ -52,7 +52,8 @@ class authentication extends auth
|
||||
// derzeit checkldapuser in functions.inc.php bzw per htaccess
|
||||
public function checkpassword($username, $passwort)
|
||||
{
|
||||
if($passwort=='1q2w3'
|
||||
var_dump($username);
|
||||
if ($passwort=='1q2w3'
|
||||
&& ($username=='pam'
|
||||
|| $username=='admin'
|
||||
|| $username=='assistenz1'
|
||||
@@ -66,8 +67,12 @@ class authentication extends auth
|
||||
|| $username=='lektor1'
|
||||
|| $username=='lektor2'
|
||||
|| $username=='lektor3'
|
||||
|| $username == 'aufnahme'))
|
||||
return true;
|
||||
|| $username=='aufnahme')
|
||||
)
|
||||
{
|
||||
$_SERVER['PHP_AUTH_USER']=$username;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user