Project

General

Profile

Actions

Bug #15

closed

Duplicate Admin Accounts Created with Same Email When Multiple Requests Are Sent Simultaneously

Added by Vivek Kumar about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
03/13/2026
Due date:
% Done:

100%

Estimated time:

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

  1. Open Admin management page
  2. Click on Add Admin
  3. Fill the details
  4. Click on Create Admin buttons multiple times quickly
  5. 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

Race Condition Bug AKW006.png (355 KB) Race Condition Bug AKW006.png Vivek Kumar, 03/13/2026 06:37 AM
Actions

Also available in: Atom PDF