Skip to content

Commit

Permalink
fix: proper applciation email template handling
Browse files Browse the repository at this point in the history
  • Loading branch information
MCBrandenburg committed May 3, 2022
1 parent b408298 commit 5bf9cf3
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions fusionauth/resource_fusionauth_application_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,20 +398,20 @@ func buildResourceDataFromApplication(a fusionauth.Application, data *schema.Res

err = data.Set("email_configuration", []map[string]interface{}{
{
"email_configuration.0.email_verification_template_id": a.EmailConfiguration.EmailVerificationEmailTemplateId,
"email_configuration.0.email_update_template_id": a.EmailConfiguration.EmailUpdateEmailTemplateId,
"email_configuration.0.email_verified_template_id": a.EmailConfiguration.EmailVerifiedEmailTemplateId,
"email_configuration.0.forgot_password_template_id": a.EmailConfiguration.ForgotPasswordEmailTemplateId,
"email_configuration.0.login_id_in_use_on_create_template_id": a.EmailConfiguration.LoginIdInUseOnCreateEmailTemplateId,
"email_configuration.0.login_id_in_use_on_update_template_id": a.EmailConfiguration.LoginIdInUseOnUpdateEmailTemplateId,
"email_configuration.0.login_new_device_template_id": a.EmailConfiguration.LoginNewDeviceEmailTemplateId,
"email_configuration.0.login_suspicious_template_id": a.EmailConfiguration.LoginSuspiciousEmailTemplateId,
"email_configuration.0.passwordless_email_template_id": a.EmailConfiguration.PasswordlessEmailTemplateId,
"email_configuration.0.password_reset_success_template_id": a.EmailConfiguration.PasswordResetSuccessEmailTemplateId,
"email_configuration.0.password_update_template_id": a.EmailConfiguration.PasswordUpdateEmailTemplateId,
"email_configuration.0.set_password_email_template_id": a.EmailConfiguration.SetPasswordEmailTemplateId,
"email_configuration.0.two_factor_method_add_template_id": a.EmailConfiguration.TwoFactorMethodAddEmailTemplateId,
"email_configuration.0.two_factor_method_remove_template_id": a.EmailConfiguration.TwoFactorMethodRemoveEmailTemplateId,
"email_verification_template_id": a.EmailConfiguration.EmailVerificationEmailTemplateId,
"email_update_template_id": a.EmailConfiguration.EmailUpdateEmailTemplateId,
"email_verified_template_id": a.EmailConfiguration.EmailVerifiedEmailTemplateId,
"forgot_password_template_id": a.EmailConfiguration.ForgotPasswordEmailTemplateId,
"login_id_in_use_on_create_template_id": a.EmailConfiguration.LoginIdInUseOnCreateEmailTemplateId,
"login_id_in_use_on_update_template_id": a.EmailConfiguration.LoginIdInUseOnUpdateEmailTemplateId,
"login_new_device_template_id": a.EmailConfiguration.LoginNewDeviceEmailTemplateId,
"login_suspicious_template_id": a.EmailConfiguration.LoginSuspiciousEmailTemplateId,
"passwordless_email_template_id": a.EmailConfiguration.PasswordlessEmailTemplateId,
"password_reset_success_template_id": a.EmailConfiguration.PasswordResetSuccessEmailTemplateId,
"password_update_template_id": a.EmailConfiguration.PasswordUpdateEmailTemplateId,
"set_password_email_template_id": a.EmailConfiguration.SetPasswordEmailTemplateId,
"two_factor_method_add_template_id": a.EmailConfiguration.TwoFactorMethodAddEmailTemplateId,
"two_factor_method_remove_template_id": a.EmailConfiguration.TwoFactorMethodRemoveEmailTemplateId,
},
})
if err != nil {
Expand Down

0 comments on commit 5bf9cf3

Please sign in to comment.