Select the types of activity you want to include in your feed.
[SEC] Notify owner about TOTP enrollment
- In the spirit of #4635 - Notify the owner when their account is getting enrolled into TOTP. The message is changed according if they have security keys or not. - Integration test added.
···517517account_security_caution.text_1 = If this was you, then you can safely ignore this mail.
518518account_security_caution.text_2 = If this wasn't you, your account is compromised. Please contact the admins of this site.
519519520520+totp_enrolled.subject = You have activated TOTP as 2FA method
521521+totp_enrolled.text_1.no_webauthn = You have just enabled TOTP for your account. This means that for all future logins to your account, you must use TOTP as a 2FA method.
522522+totp_enrolled.text_1.has_webauthn = You have just enabled TOTP for your account. This means that for all future logins to your account, you could use TOTP as a 2FA method or use any of your security keys.
523523+520524register_success = Registration successful
521525522526issue_assigned.pull = @%[1]s assigned you to pull request %[2]s in repository %[3]s.
+5
routers/web/user/setting/security/2fa.go
···243243 log.Error("Unable to save changes to the session: %v", err)
244244 }
245245246246+ if err := mailer.SendTOTPEnrolled(ctx, ctx.Doer); err != nil {
247247+ ctx.ServerError("SendTOTPEnrolled", err)
248248+ return
249249+ }
250250+246251 if err = auth.NewTwoFactor(ctx, t); err != nil {
247252 // FIXME: We need to handle a unique constraint fail here it's entirely possible that another request has beaten us.
248253 // If there is a unique constraint fail we should just tolerate the error