fix(qa): resolver diagnosticos estaticos, sincronizacion moodle y actualizar docs v3.6.4

This commit is contained in:
2026-10-19 14:05:58 -03:00
parent 9ad70d69e9
commit 6057b6d206
47 changed files with 372 additions and 232 deletions
+7 -1
View File
@@ -39,7 +39,13 @@ def jwt_required(f):
try:
payload = JWTService.decode_token(token, expected_type='access')
user_id = int(payload.get('sub'))
sub = payload.get('sub')
if not sub:
return jsonify({
'error': 'Unauthorized',
'message': 'Token inválido: falta identificador de usuario.'
}), 401
user_id = int(sub)
from app import db
user = db.session.get(User, user_id)