mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-22 07:47:28 -06:00
[feature] add TOTP two-factor authentication (2FA)
This commit is contained in:
parent
0850a8f646
commit
47b3078f04
70 changed files with 5437 additions and 813 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue