Currently, curbing mobile money fraud in the country is nearly impossible. To tackle this issue, we propose developing a real-time database that allows users to query and determine if a phone number is likely fraudulent based on public contributions, especially from those who have experienced fraud.
Endpoint: /api/admin/login
Method: POST
Description: Authenticates admin users by verifying their email and password.
Authorization Required: No
Parameters:
Email: Admin's email address.
Password: Admin's password.
Validations:Email Address:
Must be in a valid email format.
Ensure the email is registered in the admin database before attempting to authenticate.
Password:
Must not be empty.
Validate the password against the hashed password stored in the database.
Feedback:
Success: "Login successful."
Failure: "Invalid email or password."
Endpoint: /api/admin/login Method: POST Description: Authenticates admin users by verifying their email and password. Authorization Required: No Parameters: Email: Admin's email address. Password: Admin's password.
Validations: Email Address: Must be in a valid email format. Ensure the email is registered in the admin database before attempting to authenticate. Password: Must not be empty. Validate the password against the hashed password stored in the database.
Feedback: Success: "Login successful." Failure: "Invalid email or password."