Skip to content

Commit

Permalink
Merge branch 'feature/email'
Browse files Browse the repository at this point in the history
  • Loading branch information
dyohan9 committed Jan 22, 2021
2 parents 4435bf0 + 1157ec1 commit 419e102
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 12 deletions.
4 changes: 1 addition & 3 deletions themes/ilhasoft/email/html/email-verification.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
${msg("emailVerificationText", linkExpiration)?no_esc}

<div style="cursor:pointer; margin: auto; width: 400px; text-align: center;background: #3B414D;color: #FFFFFF;font-size: 16px;
font-family: Lato;margin-top:20px;border-radius: 4px; padding: 1px 0; margin-bottom: 14px;">
font-family: Lato;margin-top:50px;border-radius: 4px; padding: 1px 0;">
${msg("emailVerificationConfirmationButton", link)?no_esc}
</div>

<div style="text-align: center; cursor:pointer; color: #9CACCC; font-family: Lato;font-style: normal;font-weight: normal;font-size: 12px;line-height: 20px; text-align: center;max-width:574px; word-break: break-all;">${link}</div>
</section>

<footer style="width: 670px;height: 150px; border-top: 1px solid #E2E6ED; border-bottom: 8px solid #262626;margin: auto; text-align: center;">
Expand Down
8 changes: 3 additions & 5 deletions themes/ilhasoft/email/html/password-reset.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
${msg("passwordResetBodyText2Html", linkExpiration)?no_esc}

<div style="cursor:pointer; margin: auto; width: 400px; text-align: center;background: #3B414D;color: #FFFFFF;font-size: 16px;
font-family: Lato;margin-top:20px;border-radius: 4px; padding: 1px 0; margin-bottom: 14px;">
${msg("passwordResetBodyHtml",link)?no_esc}
</div>

<div style="text-align: center; cursor:pointer; color: #9CACCC; font-family: Lato;font-style: normal;font-weight: normal;font-size: 12px;line-height: 20px; text-align: center;max-width:574px; word-break: break-all;">${link}</div>
font-family: Lato;margin-top:50px;border-radius: 4px; padding: 1px 0;">
${msg("passwordResetBodyHtml",link)?no_esc}
</div>
</section>

<footer style="width: 670px;height: 150px; border-top: 1px solid #E2E6ED; border-bottom: 8px solid #262626;margin: auto; text-align: center;">
Expand Down
6 changes: 3 additions & 3 deletions themes/ilhasoft/email/messages/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ emailVerificationSubject=Confirm your registration in Weni
emailVerificationBody=Someone has created a {2} account with this email address. If this was you, click the link below to verify your email address\n\n{0}\n\nThis link will expire within {1} minutes.\n\nIf you didn''t create this account, just ignore this message.
emailVerificationWelcome=Hi, <span style="font-family: Lato;color: #262626; font-size: 20px; font-weight: bold; font-style: normal;">{0}!</span>
emailVerificationConfirmation=Confirm your email to access the platform
emailVerificationConfirmationButton=<p style="font-family: Lato;"><a href="{0}">Click here to confirm the email</a></p>
emailVerificationConfirmationButton=<a href="{0}" style="color: #fff; text-decoration: none"><p style="font-family: Lato;">Click here to confirm the email</p></a>
emailVerificationText=<div style="font-family: Lato; font-style: normal; font-weight: normal; font-size: 16px; line-height: 24px; color: #808080; margin-top: 28px;">We are happy to have you with us! To proceed with accessing your account, check your email by pressing the button below or copying and pasting the link in your browser. <strong style="">Stay tuned, the link expires in {0} minutes!</strong></div>
emailTestSubject=[KEYCLOAK] - SMTP test message
emailTestBody=This is a test message
Expand All @@ -11,8 +11,8 @@ identityProviderLinkSubject=Link {0}
identityProviderLinkBody=Someone wants to link your "{1}" account with "{0}" account of user {2} . If this was you, click the link below to link accounts\n\n{3}\n\nThis link will expire within {4} minutes.\n\nIf you don''t want to link account, just ignore this message. If you link accounts, you will be able to login to {1} through {0}.
identityProviderLinkBodyHtml=<p>Someone wants to link your <b>{1}</b> account with <b>{0}</b> account of user {2} . If this was you, click the link below to link accounts</p><p><a href="{3}">Link to confirm account linking</a></p><p>This link will expire within {4} minutes.</p><p>If you don''t want to link account, just ignore this message. If you link accounts, you will be able to login to {1} through {0}.</p>
passwordResetSubject=Password recovery
passwordResetBody=Someone just requested to change your {2} account''s credentials. If this was you, click on the link below to reset them.\n\n{0}\n\nThis link and code will expire within {1} minutes.\n\nIf you don''t want to reset your credentials, just ignore this message and nothing will be changed. \n\n ** For Intelbras employees it is not possible to change the password through this portal. To change the password you must carry out the procedure through your computer.
passwordResetBodyHtml=<a href="{0}"><p style="font-family: Lato;">Click here to reset your password</p></a>
passwordResetBody=Someone just requested to change your {2} account''s credentials. If this was you, click on the link below to reset them.\n\n{0}\n\nThis link and code will expire within {1} minutes.\n\nIf you don''t want to reset your credentials, just ignore this message and nothing will be changed.
passwordResetBodyHtml=<a href="{0}" style="color: #fff; text-decoration: none; cursor:pointer;"><p style="font-family: Lato; cursor:pointer;">Click here to reset your password</p></a>
passwordResetBodyText1Html=<div style="font-family: Lato; font-weight: bold; font-size: 20px; line-height: 28px; color: #262626; margin-top: 24px;">Access the password reset link</div>
passwordResetBodyText2Html=<div style="font-family: Lato; font-style: normal; font-weight: normal; font-size: 16px; line-height: 24px; color: #808080; margin-top: 24px;">You have requested to recover your password. To perform the action, press the button below, or copy and paste the link in your browser, which will redirect you to a password creation page. <strong style="">Stay tuned, the link expires in {0} minutes!</strong></div>
passwordResetBodyText3Html=<div style="margin: 5px auto;font-family: Lato;font-style: normal;font-weight: normal;font-size: 12px;line-height: 16px;text-align: center;color: #4E5666;width: 385px;height: 32px;">If you have not performed this action, ignore this message and change your email password for security. Talk to support if necessary!</div>
Expand Down
43 changes: 43 additions & 0 deletions themes/ilhasoft/email/messages/messages_pt_BR.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
emailVerificationSubject=Confirme seu cadastro na Weni
emailVerificationBody=Alguém criou uma conta {2} com este endereço de e-mail. Se foi você, clique no link abaixo para verificar o seu endereço de e-mail \n \n{0}\n\nEste link irá expirar dentro de {1} minutos. \n\nSe você não criou esta conta, ignore isto mensagem.
emailVerificationWelcome=Oi, <span style="font-family: Lato;color: #262626; font-size: 20px; font-weight: bold; font-style: normal;">{0}!</span>
emailVerificationConfirmation=Confirme seu e-mail para acessar a plataforma
emailVerificationConfirmationButton=<a href="{0}" style="color: #fff; text-decoration: none"><p style="font-family: Lato;">Clique aqui para confirmar o email</p></a>
emailVerificationText=<div style="font-family: Lato; font-style: normal; font-weight: normal; font-size: 16px; line-height: 24px; color: #808080; margin-top: 28px;">Estamos felizes em ter você conosco! Para continuar acessando sua conta, verifique seu e-mail pressionando o botão abaixo ou copiando e colando o link em seu navegador. <strong style="">Fique ligado, o link expira em {0} minutos!</strong></div>
emailTestSubject=[KEYCLOAK] - SMTP test message
emailTestBody=This is a test message
emailTestBodyHtml=<p>This is a test message</p>
identityProviderLinkSubject=Link {0}
identityProviderLinkBody=Alguém deseja vincular sua conta "{1}" à conta "{0}" do usuário {2}. Se foi você, clique no link abaixo para vincular contas \n\n{3}\n\nEste link irá expirar em {4} minutos. \n\nSe você não quiser vincular conta, ignore esta mensagem. Se vincular contas, você poderá fazer login em {1} por meio de {0}.
identityProviderLinkBodyHtml=<p> Alguém deseja vincular sua conta <b> {1} </b> à conta <b> {0} </b> do usuário {2}. Se foi você, clique no link abaixo para vincular contas </p> <p> <a href="{3}"> Link para confirmar a vinculação de contas </a> </p> <p> Este link irá expirar em {4} minutos. </p> <p> Se você não quiser vincular a conta, ignore esta mensagem. Se você vincular contas, poderá fazer login em {1} por meio de {0}. </p>
passwordResetSubject=Recuperação de senha
passwordResetBody=Alguém acabou de solicitar a alteração das credenciais da sua conta {2}. Se foi você, clique no link abaixo para redefini-los. \n\n{0}\n\nEste link e código irão expirar em {1} minutos. \n\nSe você não quiser redefinir suas credenciais, apenas ignore esta mensagem e nada será alterado.
passwordResetBodyHtml=<a href="{0}" style="color: #fff; text-decoration: none; cursor:pointer;"><p style="font-family: Lato; cursor:pointer;">Clique aqui para redefinir sua senha</p></a>
passwordResetBodyText1Html=<div style="font-family: Lato; font-weight: bold; font-size: 20px; line-height: 28px; color: #262626; margin-top: 24px;">Acesse o link de redefinição de senha</div>
passwordResetBodyText2Html=<div style="font-family: Lato; font-style: normal; font-weight: normal; font-size: 16px; line-height: 24px; color: #808080; margin-top: 24px;">Você solicitou a recuperação de sua senha. Para realizar a ação, pressione o botão abaixo, ou copie e cole o link em seu navegador, que o redirecionará para uma página de criação de senha. <strong style="">Fique ligado, o link expira em {0} minutos!</strong></div>
passwordResetBodyText3Html=<div style="margin: 5px auto;font-family: Lato;font-style: normal;font-weight: normal;font-size: 12px;line-height: 16px;text-align: center;color: #4E5666;width: 385px;height: 32px;">Se você não executou esta ação, ignore esta mensagem e altere sua senha de e-mail para segurança. Fale com o suporte se necessário!</div>
executeActionsSubject=Atualize sua conta
executeActionsBody=Seu administrador acabou de solicitar que você atualize sua conta do {2} realizando as seguintes ações: {3}. Clique no link abaixo para iniciar este processo. \n\n{0}\n\nEste link irá expirar em {1} minutos. \n\nSe você não sabe que seu administrador solicitou isso, ignore esta mensagem e nada será mudado.
executeActionsBodyHtml=<p> Seu administrador acabou de solicitar que você atualize sua conta do {2} executando as seguintes ações: {3}. Clique no link abaixo para iniciar este processo. </p> <p> <a href="{0}"> Link para atualização da conta </a> </p> <p> Este link irá expirar em {1} minutos. </p> <p> Se você não sabe que o seu administrador solicitou isso, apenas ignore esta mensagem e nada será alterado. </p>
eventLoginErrorSubject=Erro de login
eventLoginErrorBody=Uma tentativa malsucedida de login foi detectada em sua conta em {0} de {1}. Se não foi você, entre em contato com um administrador.
eventLoginErrorBodyHtml=<p>Uma tentativa malsucedida de login foi detectada em sua conta em {0} de {1}. Se não foi você, entre em contato com um administrador.</p>
eventRemoveTotpSubject=Remover OTP
eventRemoveTotpBody=OTP foi removido de sua conta em {0} de {1}. Se não foi você, entre em contato com um administrador.
eventRemoveTotpBodyHtml=<p>OTP foi removido de sua conta em {0} de {1}. Se não foi você, entre em contato com um administrador.</p>
eventUpdatePasswordSubject=Atualizar senha
eventUpdatePasswordBody=Sua senha foi alterada em {0} de {1}. Se não foi você, entre em contato com um administrador.
eventUpdatePasswordBodyHtml=<p>Your password was changed on {0} from {1}. If this was not you, please contact an admin.</p>
eventUpdateTotpSubject=Atualizar OTP
eventUpdateTotpBody=OTP foi atualizado para sua conta em {0} de {1}. Se não foi você, entre em contato com um administrador.
eventUpdateTotpBodyHtml=<p>OTP foi atualizado para sua conta em {0} de {1}. Se não foi você, entre em contato com um administrador.</p>

requiredAction.CONFIGURE_TOTP=Configurar OTP
requiredAction.terms_and_conditions=Termos e Condições
requiredAction.UPDATE_PASSWORD=Atualizar senha
requiredAction.UPDATE_PROFILE=Atualizar perfil
requiredAction.VERIFY_EMAIL=Verificar e-mail

emailAccessOurSite=Visite o nosso site
emailFooterText=<div style="margin: 5px auto;font-family: Lato;font-style: normal;font-weight: normal;font-size: 12px;line-height: 16px;text-align: center;color: #4E5666;width: 385px;height: 32px;">Se você não executou esta ação, ignore esta mensagem e altere sua senha de e-mail para segurança. Fale com o suporte se necessário!</div>
emailCopyright=<div style="font-family: Lato;font-style: normal;font-weight: normal;font-size: 12px;line-height: 20px;color: #CCCCCC;text-align: center;margin-top:10px;">Weni © Brasil 2020 - Todos os direitos reservados</div>
3 changes: 2 additions & 1 deletion themes/ilhasoft/email/theme.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
parent=base
parent=base
locales=en,pt-BR

0 comments on commit 419e102

Please sign in to comment.