Skip to content

Commit

Permalink
missed commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrFlick72 committed Jun 23, 2024
1 parent 8719164 commit 2a49ef8
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions local-environment/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ event:
enable:
logger-event-consumer: true

no-reply: #todo update helm chart too
no-reply:
email:
from: "[email protected]"
welcomeMailSubject: "welcome mail"
verificationMailSubject: "verification mail"
resetPasswordMailSubject: "reset password mail"
mfaMailSubject: "mfa code"
welcomeEMailSubject: "welcome mail"
verificationEMailSubject: "verification mail"
resetPasswordEMailSubject: "reset password mail"
mfaEMailSubject: "mfa code"

mfa:
otp:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class EMailVerificationConfig {
JinjavaMailTemplateResolver(Jinjava()),
SimpleEMailMessageFactory(
noReplyEMailConfiguration.from,
noReplyEMailConfiguration.welcomeMailSubject,
noReplyEMailConfiguration.welcomeEMailSubject,
EMailType.EMAIL_VERIFICATION
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ResetPasswordConfig {
JinjavaMailTemplateResolver(Jinjava()),
SimpleEMailMessageFactory(
noReplyEMailConfiguration.from,
noReplyEMailConfiguration.resetPasswordMailSubject,
noReplyEMailConfiguration.resetPasswordEMailSubject,
EMailType.RESET_PASSWORD
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class WelcomeConfig {
JinjavaMailTemplateResolver(Jinjava()),
SimpleEMailMessageFactory(
noReplyEMailConfiguration.from,
noReplyEMailConfiguration.welcomeMailSubject,
noReplyEMailConfiguration.welcomeEMailSubject,
EMailType.WELCOME
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties("no-reply.email")
data class NoReplyEMailConfiguration(
val from: String = "",
val welcomeMailSubject: String = "",
val verificationMailSubject: String = "",
val resetPasswordMailSubject: String = "",
val mfaMailSubject: String = ""
val welcomeEMailSubject: String = "",
val verificationEMailSubject: String = "",
val resetPasswordEMailSubject: String = "",
val mfaEMailSubject: String = ""
)
2 changes: 1 addition & 1 deletion src/main/kotlin/com/vauthenticator/server/mfa/MfaConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class MfaConfig {
JinjavaMailTemplateResolver(Jinjava()),
SimpleEMailMessageFactory(
noReplyEMailConfiguration.from,
noReplyEMailConfiguration.mfaMailSubject, // todo chenge the subject
noReplyEMailConfiguration.mfaEMailSubject, // todo chenge the subject
EMailType.MFA
)
)
Expand Down

0 comments on commit 2a49ef8

Please sign in to comment.