13 lines
482 B
Go
13 lines
482 B
Go
![]() |
package validators
|
||
|
|
||
|
import "github.com/authorizerdev/authorizer/server/constants"
|
||
|
|
||
|
// IsValidEmailTemplateEventName function to validate email template events
|
||
|
func IsValidEmailTemplateEventName(eventName string) bool {
|
||
|
if eventName != constants.VerificationTypeBasicAuthSignup && eventName != constants.VerificationTypeForgotPassword && eventName != constants.VerificationTypeMagicLinkLogin && eventName != constants.VerificationTypeUpdateEmail {
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
return true
|
||
|
}
|