[feature] add TOTP two-factor authentication (2FA)

This commit is contained in:
tobi 2025-04-01 18:38:22 +02:00
commit 47b3078f04
70 changed files with 5437 additions and 813 deletions

View file

@ -99,6 +99,10 @@ func (c *Converter) UserToAPIUser(ctx context.Context, u *gtsmodel.User) *apimod
user.ResetPasswordSentAt = util.FormatISO8601(u.ResetPasswordSentAt)
}
if !u.TwoFactorEnabledAt.IsZero() {
user.TwoFactorEnabledAt = util.FormatISO8601(u.TwoFactorEnabledAt)
}
return user
}