Changes between Initial Version and Version 1 of UseCase17


Ignore:
Timestamp:
06/14/26 21:04:33 (6 days ago)
Author:
236021
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase17

    v1 v1  
     1= UseCase17 - Billing Admin Login / Authentication =
     2
     3== Initiating Actor - `Billing Admin` ==
     4
     5== Description ==
     6A system administrator logs into the Medora system using their credentials. The admin gains access to billing administrative functions.
     7
     8== Scenario ==
     9
     101. Administrator navigates to the Medora login page.
     11
     122. Administrator enters their username and password and submits the login form.
     13
     14{{{
     15#!sql
     16SELECT
     17  u.user_id,
     18  u.username,
     19  u.password,
     20  u.role,
     21  u.first_name,
     22  u.last_name,
     23  u.is_active
     24FROM users u
     25WHERE u.username = 'admin_ilija'
     26  AND u.role = 'ADMIN';
     27}}}
     28
     293. System verifies the account is active and the password matches.
     30
     31{{{
     32#!sql
     33SELECT u.user_id
     34FROM users u
     35WHERE u.username = 'admin_ilija'
     36  AND u.is_active = TRUE
     37  AND u.role = 'ADMIN';
     38}}}
     39
     404. System retrieves the linked admin profile.
     41
     42{{{
     43#!sql
     44SELECT
     45  a.admin_id,
     46  a.user_id,
     47  a.permissions
     48FROM admin a
     49WHERE a.user_id = (SELECT user_id FROM users WHERE username = 'admin_ilija');
     50}}}
     51
     525. Administrator is authenticated and redirected to the admin dashboard.