chore: build
ci-api / test (push) Canceled after 31m21s
ci-web / test (push) Successful in 13m55s

This commit is contained in:
Cameron Foussard
2026-11-22 16:25:45 +01:00
parent 00f9bb95a4
commit e9908ff406
24 changed files with 4856 additions and 1570 deletions
@@ -29,6 +29,11 @@ func (s *GormStore) ByUsername(username string) (User, bool) {
return u, true
}
// Delete supprime définitivement l'utilisateur (pas de suppression logique).
func (s *GormStore) Delete(id string) error {
return s.db.Unscoped().Where("id = ?", id).Delete(&User{}).Error
}
// Create insère un utilisateur (usage seed/admin), mot de passe déjà haché.
func (s *GormStore) Create(username, passwordHash string, role Role) (User, error) {
u := User{