This commit is contained in:
julien 2025-07-16 11:51:09 +02:00
parent a9898b7b2c
commit c2e0554384

View File

@ -114,7 +114,6 @@ func LoginHandler(db *gorm.DB) http.HandlerFunc {
// 5. Répondre en JSON pour Flutter // 5. Répondre en JSON pour Flutter
w.WriteHeader(http.StatusOK) w.WriteHeader(http.StatusOK)
json.NewEncoder(w).Encode(map[string]interface{}{ json.NewEncoder(w).Encode(map[string]interface{}{
"message": "Login successful",
"user": map[string]interface{}{ "user": map[string]interface{}{
"id": user.ID, "id": user.ID,
"username": user.Username, "username": user.Username,