How aylenrojas/proyectologin_tp3 works
Proyecto Login is a small PHP/MySQL account-authentication application. Users can register, sign in, reach a session-protected dashboard, and log out; browser-side JavaScript checks login and registration forms before submission. The PHP pages perform the account queries through a shared PDO connection, while the dashboard and logout page manage the authenticated session. The excerpts show these flows and the configured MySQL connection; database.sql is present in the tree, but its schema contents were not sampled.
Main entry points: index.php Sign-in page · registro.php Registration page · dashboard.php Protected dashboard · logout.php Logout handler
Components 8
Account entry
- Sign-in page
index.php - Registration page
registro.php - Form validation
validaciones.js
Authentication
- PDO connection
conexion.php - Account records
database.sql
Session area
- Protected dashboard
dashboard.php - Logout handler
logout.php
Other components
- User
Connections 12
- User → Sign-in page: submits login
index.php - User → Registration page: submits registration
registro.php - Sign-in page → Form validation: loads checks
index.php - Registration page → Form validation: loads checks
registro.php - Sign-in page → PDO connection: queries via
index.php - Registration page → PDO connection: queries via
registro.php - Sign-in page → Account records: reads account
index.php - Registration page → Account records: checks and inserts
registro.php - Sign-in page → Protected dashboard: redirects on success
index.php - Protected dashboard → Sign-in page: redirects if unauthenticated
dashboard.php - Protected dashboard → Logout handler: links to logout
dashboard.php - Logout handler → Sign-in page: redirects after clearing session
logout.php