sso url 하드코딩 수정
This commit is contained in:
1 parent
c7af13f749
commit
3f403e53ce
4 files changed
+14
-5
No files matched your search
@@ -4,7 +4,10 @@ const router = express.Router();
|
||||
// GET home page
|
||||
router.get('/', (req, res, next) => {
|
||||
// The ssoHandler middleware has already attached the user to res.locals
|
||||
res.render('index', { user: res.locals.user });
|
||||
res.render('index', {
|
||||
user: res.locals.user,
|
||||
ssoUrl: process.env.SSO_URL // Pass SSO_URL to the template
|
||||
});
|
||||
});
|
||||
|
||||
// GET logout
|
||||
|
||||
Reference in new issue
Block a user