Gestion des utilisateurs
This commit is contained in:
parent
157c33227e
commit
9d25ca20df
14 changed files with 576 additions and 26 deletions
|
|
@ -29,10 +29,10 @@ func MfaEnrollMiddleware(c *fiber.Ctx) error {
|
|||
result := db.First(&user, "id = ?", userid)
|
||||
|
||||
if result.Error != nil {
|
||||
return err
|
||||
return result.Error
|
||||
}
|
||||
|
||||
if user.TotpSercet.Valid {
|
||||
if user.TotpSecret.Valid {
|
||||
return c.Next()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue