3 Commits
Author SHA1 Message Date
Xor290 97381b8b68 chore: add pre-prod branch in CI backend 2026-05-09 15:25:12 +02:00
Xor290 8ebb6d2370 chore: add backend 2026-05-09 15:22:24 +02:00
Xor290 eb8ba01159 chore: delete ci 2026-05-09 15:21:10 +02:00
3 changed files with 5 additions and 10 deletions
+2 -2
View File
@@ -2,11 +2,11 @@ name: Backend - Build & Lint
on: on:
push: push:
branches: [main] branches: [main, pre-prod]
paths: paths:
- "backend/**/**" - "backend/**/**"
pull_request: pull_request:
branches: [main] branches: [main, pre-prod]
paths: paths:
- "backend/**/**" - "backend/**/**"
-1
View File
@@ -454,7 +454,6 @@ func ToggleClient2FA(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"success": true, "two_fa_enabled": req.Enabled}) c.JSON(http.StatusOK, gin.H{"success": true, "two_fa_enabled": req.Enabled})
} }
// ChangePassword permet à un client de changer son mot de passe
func ChangePassword(c *gin.Context) { func ChangePassword(c *gin.Context) {
var req struct { var req struct {
CurrentPassword string `json:"current_password" binding:"required"` CurrentPassword string `json:"current_password" binding:"required"`
-4
View File
@@ -18,10 +18,6 @@ type AdminClaims struct {
jwt.RegisteredClaims jwt.RegisteredClaims
} }
// ============================================
// STRUCTURES REQUÊTE / RÉPONSE
// ============================================
type LoginRequest struct { type LoginRequest struct {
Username string `json:"username" binding:"required"` Username string `json:"username" binding:"required"`
Password string `json:"password" binding:"required"` Password string `json:"password" binding:"required"`