Skip to content

Commit

Permalink
fix: admin routes should redirect to auth0 login page
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjoly committed Feb 4, 2024
1 parent feffe2b commit 91dbb68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/templates/logging.js
Expand Up @@ -22,6 +22,11 @@ exports.refreshTemplates = function (callback) {
exports.refreshTemplates();

exports.renderLoginPage = function (form) {
if (process.appParams.useAuth0AsIdentityProvider) {
console.log(`${process.env.WHYD_URL_PREFIX}/login`);
return exports.htmlRedirect(`${process.env.WHYD_URL_PREFIX}/login`);
}

const params = {
urlPrefix: config.urlPrefix,
title: 'openwhyd',
Expand Down

0 comments on commit 91dbb68

Please sign in to comment.