Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* draft fix * test * revert change to email testing helper to fix tests Co-authored-by: Noah Moss <32746338+noahmoss@users.noreply.github.com>
- Loading branch information
1 parent
057e2d6
commit edadf73
Showing
5 changed files
with
65 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,31 @@ | ||
| {{> metabase/email/_header }} | ||
| <div> | ||
| {{#sso}} | ||
| {{#google}} | ||
| <p>You're using Google to log in to {{applicationName}}, so you don't have a password. You can log in to {{applicationName}} by clicking "Sign in with Google"</p> | ||
| <a href="{{siteUrl}}">Go to {{applicationName}}</a> | ||
| {{/sso}} | ||
| {{^sso}} | ||
| {{#isActive}} | ||
| <div style="text-align: center"> | ||
| <p>Click the button below to reset the password for your {{applicationName}} account at {{siteUrl}}.</p> | ||
| <a style="display: inline-block; box-sizing: border-box; font-size: 18px; padding: 8px 22px; cursor: pointer; text-decoration: none; border-radius: 4px; background-color: #4990E2; border-color: #4990E2; color: #fff;" href="{{passwordResetUrl}}">Reset password</a> | ||
| <p style="padding-top: 2em; font-size: small;">Didn't request this password reset? It's safe to ignore it.</p> | ||
| </div> | ||
| {{/isActive}} | ||
| {{^isActive}} | ||
| <p>Someone requested a password reset for your {{applicationName}} account at {{siteUrl}}, but your account | ||
| has been deactivated. Contact an administrator for further assistance.</p> | ||
| {{#adminEmailSet}} | ||
| <a href="mailto:{{adminEmail}}">Contact your administrator</a> | ||
| {{/adminEmailSet}} | ||
| {{/isActive}} | ||
| {{/sso}} | ||
| {{/google}} | ||
| {{^google}} | ||
| {{#nonGoogleSSO}} | ||
| <p>We can't reset your password becase you're using single sign-on to log in to {{applicationName}}. Use the | ||
| "Sign in with SSO" button on the log in page. To change your password, you'll need to contact an administrator.</p> | ||
| <a href="{{siteUrl}}">Go to {{applicationName}}</a> | ||
| {{/nonGoogleSSO}} | ||
| {{^nonGoogleSSO}} | ||
| {{#isActive}} | ||
| <div style="text-align: center"> | ||
| <p>Click the button below to reset the password for your {{applicationName}} account at {{siteUrl}}.</p> | ||
| <a style="display: inline-block; box-sizing: border-box; font-size: 18px; padding: 8px 22px; cursor: pointer; text-decoration: none; border-radius: 4px; background-color: #4990E2; border-color: #4990E2; color: #fff;" href="{{passwordResetUrl}}">Reset password</a> | ||
| <p style="padding-top: 2em; font-size: small;">Didn't request this password reset? It's safe to ignore it.</p> | ||
| </div> | ||
| {{/isActive}} | ||
| {{^isActive}} | ||
| <p>Someone requested a password reset for your {{applicationName}} account at {{siteUrl}}, but your account | ||
| has been deactivated. Contact an administrator for further assistance.</p> | ||
| {{#adminEmailSet}} | ||
| <a href="mailto:{{adminEmail}}">Contact your administrator</a> | ||
| {{/adminEmailSet}} | ||
| {{/isActive}} | ||
| {{/nonGoogleSSO}} | ||
| {{/google}} | ||
| </div> | ||
| {{> metabase/email/_footer }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters