Overview
SASCOP BME SubTec uses Django’s authentication system to provide secure access to the platform. Users can log in with either their username or email address.Logging In
Navigate to Login Page
Open your browser and navigate to the SASCOP BME SubTec login page at
/accounts/login/Enter Credentials
You can log in using either:
- Your username
- Your email address
The system automatically redirects authenticated users to the dashboard if they attempt to access the login page.
Authentication Flow
The authentication process is handled by thecustom_login function:
operaciones/views/login.py
Session Management
Session Timeout
SASCOP implements automatic session timeout for security:Session Configuration
- Session Duration: 2 hours (7200 seconds)
- Auto-Save: Sessions are saved on every request
- Browser Close: Session persists after browser close
bme_subtec/settings.py
Session Expiration
When your session expires due to inactivity:- You’ll be redirected to the login page
- An error message will display: “La sesión ha expirado por inactividad”
- Simply re-enter your credentials to continue
Logging Out
Logout Implementation
operaciones/views/login.py
Security Features
Password Validation
SASCOP enforces strong password requirements:Similarity Check
Passwords cannot be too similar to your user information
Minimum Length
Passwords must meet minimum length requirements
Common Passwords
Common passwords are blocked
Numeric Only
Passwords cannot be entirely numeric
bme_subtec/settings.py
CSRF Protection
All forms include CSRF protection to prevent cross-site request forgery attacks.The login view uses
@ensure_csrf_cookie decorator to ensure CSRF tokens are properly set.Troubleshooting
Login Issues
Invalid Username/Password
Invalid Username/Password
Error Message: “Usuario/email o contraseña incorrectos”Solutions:
- Verify you’re using the correct username or email
- Check for typos in your password (passwords are case-sensitive)
- Contact your system administrator to reset your password
Session Expired
Session Expired
Error Message: “La sesión ha expirado por inactividad”Solutions:
- This is normal after 2 hours of inactivity
- Simply log in again with your credentials
- Your work may have been auto-saved depending on the module
Account Locked
Account Locked
If your account has been deactivated:
- Contact your system administrator
- Provide your username or email for account reactivation
Best Practices
Use Strong Passwords
Create unique passwords with a mix of letters, numbers, and symbols
Log Out When Done
Always log out when using shared computers
Keep Session Active
Interact with the system regularly during long work sessions
Secure Your Device
Keep your computer and browser secure with latest updates
Related Topics
Dashboard Navigation
Learn how to navigate the main dashboard
User Permissions
Understand user roles and permissions