fix(security): create just cabine and livreur with api but create admin is just in bdd

This commit is contained in:
2026-05-18 17:35:35 +02:00
parent a8e22e63bc
commit 3dfc15cec1
2 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ type RegisterClientRequest struct {
type RegisterAdminRequest struct {
Username string `json:"username" binding:"required,min=3,max=50"`
Password string `json:"password" binding:"required,min=8"`
Role string `json:"role" binding:"required,oneof=admin cabine livreur"`
Role string `json:"role" binding:"required,oneof=cabine livreur"`
}
type LoginResponse struct {