Skip to content

Commit d4e6988

Browse files
Fix legacy auth access check
The access was always granted with legacy_auth enabled
1 parent 4dd0807 commit d4e6988

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

porthos/root/srv/porthos/script/auth.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
if($config['legacy_auth']) {
5656
$valid_credentials = $valid_credentials || $_SERVER['PHP_AUTH_USER'] === $_SERVER['PHP_AUTH_PW'];
5757
}
58+
$valid_credentials = $valid_credentials && ($access['tier_id'] !== FALSE);
5859

5960
if($access['tier_id'] < 0) {
6061
$hash = 0;

0 commit comments

Comments
 (0)