Bug #15
closedDuplicate Admin Accounts Created with Same Email When Multiple Requests Are Sent Simultaneously
100%
Description
Module
Admin Management
Environment
Environment: Development
URL: https://dev.akinderwellness.com/pages/adminManagement
API Endpoint: POST /api/admin/add-admin
Browser: Google Chrome
OS: Windows
Description
When the Add Admin API request is triggered multiple times quickly, the system allows creation of duplicate admin accounts with the same email address.
The API should enforce email uniqueness, but when multiple requests are sent simultaneously, two users with the same email are created.
The issue is visible in the Admin Management page, where duplicate records with the same email appear.
Steps To Reproduce
- Open Admin management page
- Click on Add Admin
- Fill the details
- Click on Create Admin buttons multiple times quickly
- Observe the admin list
Expected Result
The system should prevent duplicate admin creation with the same email address even if multiple requests are sent simultaneously.
Only one admin account should be created with any email
Actual Result
Multiple Admin Accounts created.
Files
Updated by Adhi Narayanan about 1 month ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Fixed Duplicate Admin Accounts Created with Same Email When Multiple Requests Are Sent Simultaneously