up
This commit is contained in:
parent
a9898b7b2c
commit
c2e0554384
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user