Evalua Javiera uses a purely client-side authentication model. There is no server-side session, no JWT token, no cookie, and no database query involved in the login process. Instead, a static list of permitted credentials is bundled directly intoDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/groupTwoisTheBest/evaJav/llms.txt
Use this file to discover all available pages before exploring further.
static/js/index.js and the entire credential check happens inside the student’s browser when the login form is submitted.
Credential Store
All valid users are defined in a JavaScript array at the top ofstatic/js/index.js. Each entry contains a username (a Colombian-format document number), a password, and a redirect path that the browser should navigate to on successful login:
MJAVIERA) and are redirected to the same next page (/seleccionatuprofesor) upon login. Adding or removing students means editing this array directly in the source file.
Login Function
When the student submits the login form, theonsubmit handler on the <form> element in templates/index.html calls login(event). The complete function from static/js/index.js is:
event.preventDefault() stops the form from triggering a full browser reload. The function then reads the values of the username and password input fields and uses Array.prototype.find to look for a matching entry in the users array. If a match is found, the browser is sent to found.redirect (which is always /seleccionatuprofesor in the current configuration). If no match is found, alert() displays an error message in Spanish.
Login Flow Summary
- Student opens
/— the FastAPI route renderstemplates/index.html, which loadsstatic/js/index.js. - Student types their document number into the Usuario field (
id="username") and their password into the Contraseña field (id="password"). - Student clicks Ingresar — the form’s
onsubmitfireslogin(event). login()searches the in-memoryusersarray for a matching{ username, password }pair.- Match found →
window.location.href = "/seleccionatuprofesor"navigates to the teacher-selection screen. - No match →
alert("Usuario o contraseña incorrectos.")is shown; the student remains on the login page.
