You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
URL path to an email template to use when notifying a user that a new identity has been linked to their account. (e.g. `https://www.example.com/path-to-email-template.html`)
746
+
`Email` and `Provider` variables are available.
747
+
748
+
Default Content (if template is unavailable):
749
+
750
+
```html
751
+
<h2>A new identity has been linked</h2>
752
+
753
+
<p>
754
+
A new identity ({{ .Provider }}) has been linked to your account {{ .Email }}.
755
+
</p>
756
+
<p>If you did not make this change, please contact support immediately.</p>
URL path to an email template to use when notifying a user that an identity has been unlinked from their account. (e.g. `https://www.example.com/path-to-email-template.html`)
766
+
`Email` and `Provider` variables are available.
767
+
768
+
Default Content (if template is unavailable):
769
+
770
+
```html
771
+
<h2>An identity has been unlinked</h2>
772
+
773
+
<p>
774
+
An identity ({{ .Provider }}) has been unlinked from your account {{ .Email
775
+
}}.
776
+
</p>
777
+
<p>If you did not make this change, please contact support immediately.</p>
URL path to an email template to use when notifying a user that they have enrolled in a new MFA factor. (e.g. `https://www.example.com/path-to-email-template.html`)
// Assert that identity unlinked notification email was sent
314
+
require.Len(ts.T(), mockMailer.IdentityUnlinkedMailCalls, 1, "Expected 1 identity unlinked notification email(s) to be sent")
315
+
require.Equal(ts.T(), u.ID, mockMailer.IdentityUnlinkedMailCalls[0].User.ID, "Email should be sent to the correct user")
316
+
require.Equal(ts.T(), "phone", mockMailer.IdentityUnlinkedMailCalls[0].Provider, "Provider should match")
317
+
require.Equal(ts.T(), "[email protected]", mockMailer.IdentityUnlinkedMailCalls[0].User.GetEmail(), "Email should be sent to the correct email address")
0 commit comments