mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-04-05 08:53:53 -04:00
Implemented the AUTH_OIDC_REDIRECT_LOGIN environment variable. Added an OIDC redirect function within authentication.js controller. Updated README.md. Updated dependencies
This commit is contained in:
@@ -19,6 +19,12 @@ module.exports = {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if OIDC redirects are enabled
|
||||
if (variables.authOidcEnabled && variables.authOidcRedirectLogin) {
|
||||
res.redirect(302, `${req.headers['x-ingress-path'] ? req.headers['x-ingress-path'] : ''}/oidc/login`);
|
||||
return;
|
||||
}
|
||||
|
||||
const hour = new Date().getHours();
|
||||
const timeHeader = hour < 12 ? 'Good Morning' : hour < 18 ? 'Good Afternoon' : 'Good Evening';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user