summaryrefslogtreecommitdiff
path: root/internal/email/confirm.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/email/confirm.go')
-rw-r--r--internal/email/confirm.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/internal/email/confirm.go b/internal/email/confirm.go
index 9f05a4f71..4fbe2a98f 100644
--- a/internal/email/confirm.go
+++ b/internal/email/confirm.go
@@ -26,13 +26,20 @@ const (
type ConfirmData struct {
// Username to be addressed.
Username string
- // URL of the instance to present to the receiver.
+ // URL of the instance to
+ // present to the receiver.
InstanceURL string
- // Name of the instance to present to the receiver.
+ // Name of the instance to
+ // present to the receiver.
InstanceName string
- // Link to present to the receiver to click on and do the confirmation.
- // Should be a full link with protocol eg., https://example.org/confirm_email?token=some-long-token
+ // Link to present to the receiver to
+ // click on and do the confirmation.
+ // Should be a full link with protocol
+ // eg., https://example.org/confirm_email?token=some-long-token
ConfirmLink string
+ // Is this confirm email being sent
+ // because this is a new sign-up?
+ NewSignup bool
}
func (s *sender) SendConfirmEmail(toAddress string, data ConfirmData) error {