yavsc/src/Yavsc.Org/Views/Account/Delete.cshtml
Paul Schneider 2ad7a55e34
All checks were successful
Dotnet build and test / build (pull_request) Successful in 18m44s
Add missing Account/Delete confirmation page
The POST Delete(UnregisterViewModel) action and the GET Delete() action
both existed in AccountController, but Views/Account/Delete.cshtml was
missing — so GET /Account/Delete had no page to render. Add the
confirmation view (posts back to Delete with the user's UserId, with a
"Confirmer la suppression" button and an "Annuler" cancel link).

Add a smoke test: an authenticated GET /Account/Delete returns 200 and
the confirmation page body.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-21 16:15:31 +01:00

21 lines
No EOL
716 B
Text

@model UnregisterViewModel
@{
ViewBag.Title = "Supprimer mon compte";
}
<h2>@ViewBag.Title</h2>
<div class="row">
<div class="col-md-8">
<p>
Cette action est <strong>immédiate et irréversible</strong>. Toutes les données
associées à votre compte seront supprimées, et vous serez déconnecté.
</p>
<form asp-controller="Account" asp-action="Delete" method="post" class="form-horizontal" role="form">
@Html.Hidden("UserId")
<button type="submit" class="btn btn-danger">Confirmer la suppression</button>
<a asp-controller="Home" asp-action="Index" class="btn btn-default">Annuler</a>
</form>
</div>
</div>