Forgot login
This commit is contained in:
parent
893f57c9b7
commit
ab1bbdd3df
|
@ -5,20 +5,20 @@ require_once dirname(dirname(__DIR__)) . implode(DIRECTORY_SEPARATOR, ['', 'inc'
|
||||||
$pdo = new \PDO($dbDsn, $dbUser, $dbPass);
|
$pdo = new \PDO($dbDsn, $dbUser, $dbPass);
|
||||||
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
|
|
||||||
#$userManager = new \pvv\admin\UserManager($pdo);
|
$userManager = new \pvv\admin\UserManager($pdo);
|
||||||
#
|
|
||||||
#$as = new SimpleSAML_Auth_Simple('default-sp');
|
$as = new SimpleSAML_Auth_Simple('default-sp');
|
||||||
#$as->requireAuth();
|
$as->requireAuth();
|
||||||
#$attrs = $as->getAttributes();
|
$attrs = $as->getAttributes();
|
||||||
#$loginname = $attrs['uid'][0];
|
$loginname = $attrs['uid'][0];
|
||||||
#
|
|
||||||
#if(!$loginname) {
|
if(!$loginname) {
|
||||||
# header('Content-Type: text/plain', true, 403);
|
header('Content-Type: text/plain', true, 403);
|
||||||
# echo "Du må være logget inn for å se bildegalleriet.\r\n";
|
echo "Du må være logget inn for å se bildegalleriet.\r\n";
|
||||||
# exit();
|
exit();
|
||||||
#}
|
}
|
||||||
#
|
|
||||||
#
|
|
||||||
$unamefile = __DIR__ . '/usernames.txt';
|
$unamefile = __DIR__ . '/usernames.txt';
|
||||||
$relativePath = "/bilder/pvv-photos/";
|
$relativePath = "/bilder/pvv-photos/";
|
||||||
$allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'svg', 'webp'];
|
$allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'svg', 'webp'];
|
||||||
|
|
Loading…
Reference in New Issue