fix: totp login

This commit is contained in:
Lakhan Samani
2023-12-01 14:00:01 +05:30
parent 46d6f86ab0
commit 7f6ddca3fc
5 changed files with 45 additions and 34 deletions

View File

@@ -35,13 +35,10 @@ func (p *provider) AddAuthenticator(ctx context.Context, authenticators *models.
func (p *provider) UpdateAuthenticator(ctx context.Context, authenticators *models.Authenticator) (*models.Authenticator, error) {
authenticators.UpdatedAt = time.Now().Unix()
result := p.db.Save(&authenticators)
if result.Error != nil {
return authenticators, result.Error
}
return authenticators, nil
}