[mirotalksfu] - fix typo
هذا الالتزام موجود في:
@@ -324,8 +324,10 @@ function startServer() {
|
|||||||
|
|
||||||
// Route to display user information
|
// Route to display user information
|
||||||
app.get('/profile', OIDCAuth, (req, res) => {
|
app.get('/profile', OIDCAuth, (req, res) => {
|
||||||
const user = OIDC.enabled ? req.oidc.user : { message: 'Profile not found!' };
|
if (OIDC.enabled) {
|
||||||
res.json(user); // Send user information as JSON
|
return res.json(req.oidc.user); // Send user information as JSON
|
||||||
|
}
|
||||||
|
res.sendFile(views.notFound);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Authentication Callback Route
|
// Authentication Callback Route
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم