2019-03-02 15:22:20 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information
|
|
|
|
|
|
|
|
package consoleql
|
|
|
|
|
|
|
|
const (
|
2019-03-26 15:56:16 +00:00
|
|
|
// ActivationPath is key for path which handles account activation
|
2019-03-02 15:22:20 +00:00
|
|
|
ActivationPath = "activationPath"
|
2019-04-10 20:16:10 +01:00
|
|
|
// PasswordRecoveryPath is key for path which handles password recovery
|
|
|
|
PasswordRecoveryPath = "passwordRecoveryPath"
|
2019-05-13 16:53:52 +01:00
|
|
|
// CancelPasswordRecoveryPath is key for path which handles let us know sequence
|
|
|
|
CancelPasswordRecoveryPath = "cancelPasswordRecoveryPath"
|
2019-03-26 15:56:16 +00:00
|
|
|
// SignInPath is key for sign in server route
|
|
|
|
SignInPath = "signInPath"
|
2019-09-27 17:48:53 +01:00
|
|
|
// LetUsKnowURL is key to store let us know URL
|
|
|
|
LetUsKnowURL = "letUsKnowURL"
|
|
|
|
// ContactInfoURL is a key to store contact info URL
|
|
|
|
ContactInfoURL = "contactInfoURL"
|
|
|
|
// TermsAndConditionsURL is a key to store terms and conditions URL
|
|
|
|
TermsAndConditionsURL = "termsAndConditionsURL"
|
2019-03-02 15:22:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// AccountActivationEmail is mailservice template with activation data
|
|
|
|
type AccountActivationEmail struct {
|
2019-09-27 17:48:53 +01:00
|
|
|
Origin string
|
|
|
|
ActivationLink string
|
|
|
|
ContactInfoURL string
|
|
|
|
TermsAndConditionsURL string
|
2020-01-24 12:56:33 +00:00
|
|
|
UserName string
|
2019-03-02 15:22:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Template returns email template name
|
|
|
|
func (*AccountActivationEmail) Template() string { return "Welcome" }
|
|
|
|
|
|
|
|
// Subject gets email subject
|
|
|
|
func (*AccountActivationEmail) Subject() string { return "Activate your email" }
|
|
|
|
|
|
|
|
// ForgotPasswordEmail is mailservice template with reset password data
|
|
|
|
type ForgotPasswordEmail struct {
|
2019-05-13 16:53:52 +01:00
|
|
|
Origin string
|
|
|
|
UserName string
|
|
|
|
ResetLink string
|
|
|
|
CancelPasswordRecoveryLink string
|
2019-09-27 17:48:53 +01:00
|
|
|
LetUsKnowURL string
|
|
|
|
ContactInfoURL string
|
|
|
|
TermsAndConditionsURL string
|
2019-03-02 15:22:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Template returns email template name
|
|
|
|
func (*ForgotPasswordEmail) Template() string { return "Forgot" }
|
|
|
|
|
|
|
|
// Subject gets email subject
|
2019-04-10 20:16:10 +01:00
|
|
|
func (*ForgotPasswordEmail) Subject() string { return "Password recovery request" }
|
2019-03-02 15:22:20 +00:00
|
|
|
|
|
|
|
// ProjectInvitationEmail is mailservice template for project invitation email
|
|
|
|
type ProjectInvitationEmail struct {
|
2019-09-27 17:48:53 +01:00
|
|
|
Origin string
|
|
|
|
UserName string
|
|
|
|
ProjectName string
|
|
|
|
SignInLink string
|
|
|
|
LetUsKnowURL string
|
|
|
|
ContactInfoURL string
|
|
|
|
TermsAndConditionsURL string
|
2019-03-02 15:22:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Template returns email template name
|
|
|
|
func (*ProjectInvitationEmail) Template() string { return "Invite" }
|
|
|
|
|
|
|
|
// Subject gets email subject
|
2019-03-26 15:56:16 +00:00
|
|
|
func (email *ProjectInvitationEmail) Subject() string {
|
2019-03-29 12:13:37 +00:00
|
|
|
return "You were invited to join the Project " + email.ProjectName
|
2019-03-26 15:56:16 +00:00
|
|
|
}
|