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:
push:
branches: [main]
branches: [main, pre-prod]
paths:
- "backend/**/**"
pull_request:
branches: [main]
branches: [main, pre-prod]
paths:
- "backend/**/**"
+3 -4
View File
@@ -409,9 +409,9 @@ func GetClient2FAStatus(c *gin.Context) {
settings, _ := database.GetSettings()
c.JSON(http.StatusOK, gin.H{
"two_fa_enabled": client.TwoFAEnabled,
"telegram_linked": tgLinked,
"admin_2fa_enabled": settings.Telegram2FAEnabled,
"two_fa_enabled": client.TwoFAEnabled,
"telegram_linked": tgLinked,
"admin_2fa_enabled": settings.Telegram2FAEnabled,
})
}
@@ -454,7 +454,6 @@ func ToggleClient2FA(c *gin.Context) {
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) {
var req struct {
CurrentPassword string `json:"current_password" binding:"required"`
-4
View File
@@ -18,10 +18,6 @@ type AdminClaims struct {
jwt.RegisteredClaims
}
// ============================================
// STRUCTURES REQUÊTE / RÉPONSE
// ============================================
type LoginRequest struct {
Username string `json:"username" binding:"required"`
Password string `json:"password" binding:"required"`