Adds SSL support for Discord login

This commit is contained in:
Michel 2024-11-07 21:42:28 +01:00
parent d67c4063e4
commit 41a12d9a82
3 changed files with 14 additions and 4 deletions

View file

@ -37,4 +37,9 @@ final class EnvironmentHandler
public function isProduction(): bool {
return $_SERVER['PRODUCTION'] === 'true';
}
public function useSSL(): bool
{
return $_SERVER['USE_SSL'] === 'true';
}
}