mestafrica / mobile-wallet-fraud-database

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.
MIT License
0 stars 17 forks source link

Admin - Login #98

Closed alexboateng closed 3 weeks ago

alexboateng commented 3 weeks ago

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."

Barmoo commented 3 weeks ago

good morning Alex i would like to be assigned the Login

Barmoo commented 3 weeks ago

@alexboateng please how do i get the registration of the admin?

Barmoo commented 3 weeks ago

Because cannot login successfully without the register

alexboateng commented 3 weeks ago

Merged