fix(auth): resiliencia y resolucion de credenciales delegadas moodle (v3.8.7)
This commit is contained in:
+3
-3
@@ -86,9 +86,9 @@ const env = nunjucks.configure(path.join(__dirname, '../views'), {
|
||||
});
|
||||
|
||||
// Versiones institucionales del sistema
|
||||
const APP_VERSION = '3.8.6';
|
||||
const FRONTEND_VERSION = '3.8.6';
|
||||
const BACKEND_VERSION = '3.8.6';
|
||||
const APP_VERSION = '3.8.7';
|
||||
const FRONTEND_VERSION = '3.8.7';
|
||||
const BACKEND_VERSION = '3.8.7';
|
||||
|
||||
env.addGlobal('app_version', APP_VERSION);
|
||||
env.addGlobal('frontend_version', FRONTEND_VERSION);
|
||||
|
||||
@@ -94,7 +94,7 @@ router.post('/moodle', async (req, res) => {
|
||||
res.redirect('/auth/login?error=moodle_auth_failed');
|
||||
} catch (error) {
|
||||
console.error('Moodle auth error:', error.response?.data || error.message);
|
||||
const errorMsg = encodeURIComponent(error.response?.data?.message || 'Error de autenticación en Moodle.');
|
||||
const errorMsg = encodeURIComponent(error.response?.data?.detail || error.response?.data?.message || 'Error de autenticación en Moodle.');
|
||||
res.redirect(`/auth/login?error=${errorMsg}`);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user