Login
Introduction
Logs in a registered user
Pre-Conditions
- Password
- Captcha
Course of Events
- User should be present in database
- Password and Captcha status is checked
- Account status should be activated
- Verification code is sent to email
- Database is updated with
last_successful_login_timeandaccessible_companies
Validation Checks
validate_verificationverifies the credentials and verification code- if
failed_login_attemptsis equal to 3, then the user is blocked forblock_timebefore retrying again and the database is updated withfailed_login_attemptsset to 0 after theblock_timeis over. - if user is deactivated for
disable_days, then password needs to be reset. - if user logs in for the first time, password needs to be reset.
captcha_statusshouldn't be expired.
Post Conditions
get_local_dataget_email_idswitchcompanies
Exceptions
- None