fix(auth): resiliencia y resolucion de credenciales delegadas moodle (v3.8.7)

This commit is contained in:
2026-10-21 17:18:08 -03:00
parent 0d93e2c5b7
commit 213997abeb
10 changed files with 140 additions and 33 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "3.8.6",
"version": "3.8.7",
"description": "",
"main": "index.js",
"scripts": {
+3 -3
View File
@@ -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);
+1 -1
View File
@@ -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}`);
}
});