Verrouille le nom d'utilisateur en edition admin

This commit is contained in:
2026-04-15 22:28:37 +02:00
parent 52d5bf4e98
commit c92df9a8f0
5 changed files with 16 additions and 11 deletions

View File

@@ -308,7 +308,11 @@
<div class="admin-form-grid admin-edit-form-grid">
<label class="field">
<span>Nom d'utilisateur</span>
<InputText @bind-Value="EditFormModel.Username" />
<InputText @bind-Value="EditFormModel.Username"
readonly
aria-readonly="true"
title="Le nom d'utilisateur ne peut pas etre modifie."
class="admin-readonly-field" />
<ValidationMessage For="@(() => EditFormModel.Username)" />
</label>
@@ -789,7 +793,6 @@
{
var payload = new AdminUpdateUserRequest
{
Username = EditFormModel.Username ?? string.Empty,
Email = EditFormModel.Email,
FirstName = EditFormModel.FirstName,
LastName = EditFormModel.LastName,