mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(email): omit links when application URL is not configured (#1806)
Co-authored-by: sct <ryan@sct.dev>
This commit is contained in:
@@ -212,7 +212,7 @@ export class User {
|
|||||||
},
|
},
|
||||||
locals: {
|
locals: {
|
||||||
resetPasswordLink,
|
resetPasswordLink,
|
||||||
applicationUrl: resetPasswordLink,
|
applicationUrl,
|
||||||
applicationTitle,
|
applicationTitle,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@@ -75,23 +75,5 @@ div(role='article' aria-roledescription='email' aria-label='' lang='en')
|
|||||||
margin-bottom: 20px;\
|
margin-bottom: 20px;\
|
||||||
color: #51545e;\
|
color: #51545e;\
|
||||||
')
|
')
|
||||||
a(href=applicationUrl style='color: #3869d4') Open #{applicationTitle}
|
if applicationUrl
|
||||||
tr
|
a(href=applicationUrl style='color: #3869d4') Open #{applicationTitle}
|
||||||
td
|
|
||||||
table.sm-w-full(align='center' style='\
|
|
||||||
margin-left: auto;\
|
|
||||||
margin-right: auto;\
|
|
||||||
text-align: center;\
|
|
||||||
width: 570px;\
|
|
||||||
' width='570' cellpadding='0' cellspacing='0' role='presentation')
|
|
||||||
tr
|
|
||||||
td(align='center' style='font-size: 16px; padding: 45px')
|
|
||||||
p(style='\
|
|
||||||
font-size: 13px;\
|
|
||||||
line-height: 24px;\
|
|
||||||
margin-top: 6px;\
|
|
||||||
margin-bottom: 20px;\
|
|
||||||
text-align: center;\
|
|
||||||
color: #a8aaaf;\
|
|
||||||
')
|
|
||||||
| #{applicationTitle}
|
|
||||||
|
@@ -77,9 +77,9 @@ div(role='article' aria-roledescription='email' aria-label='' lang='en')
|
|||||||
| #{extra.value}
|
| #{extra.value}
|
||||||
table(align='center' cellpadding='0' cellspacing='0' role='presentation')
|
table(align='center' cellpadding='0' cellspacing='0' role='presentation')
|
||||||
tr
|
tr
|
||||||
td
|
td(style='text-align: center')
|
||||||
a(href=actionUrl style='color: #3869d4')
|
a(href=actionUrl style='color: #3869d4')
|
||||||
img(src=imageUrl alt='')
|
img(src=imageUrl alt='' style='max-width: 50%')
|
||||||
p(style='\
|
p(style='\
|
||||||
font-size: 16px;\
|
font-size: 16px;\
|
||||||
line-height: 24px;\
|
line-height: 24px;\
|
||||||
@@ -95,23 +95,5 @@ div(role='article' aria-roledescription='email' aria-label='' lang='en')
|
|||||||
margin-bottom: 20px;\
|
margin-bottom: 20px;\
|
||||||
color: #51545e;\
|
color: #51545e;\
|
||||||
')
|
')
|
||||||
a(href=actionUrl style='color: #3869d4') Open in #{applicationTitle}
|
if actionUrl
|
||||||
tr
|
a(href=actionUrl style='color: #3869d4') Open in #{applicationTitle}
|
||||||
td
|
|
||||||
table.sm-w-full(align='center' style='\
|
|
||||||
margin-left: auto;\
|
|
||||||
margin-right: auto;\
|
|
||||||
text-align: center;\
|
|
||||||
width: 570px;\
|
|
||||||
' width='570' cellpadding='0' cellspacing='0' role='presentation')
|
|
||||||
tr
|
|
||||||
td(align='center' style='font-size: 16px; padding: 45px')
|
|
||||||
p(style='\
|
|
||||||
font-size: 13px;\
|
|
||||||
line-height: 24px;\
|
|
||||||
margin-top: 6px;\
|
|
||||||
margin-bottom: 20px;\
|
|
||||||
text-align: center;\
|
|
||||||
color: #a8aaaf;\
|
|
||||||
')
|
|
||||||
| #{applicationTitle}
|
|
||||||
|
@@ -64,12 +64,15 @@ div(role='article' aria-roledescription='email' aria-label='' lang='en')
|
|||||||
' width='570' bgcolor='#ffffff' cellpadding='0' cellspacing='0' role='presentation')
|
' width='570' bgcolor='#ffffff' cellpadding='0' cellspacing='0' role='presentation')
|
||||||
tr
|
tr
|
||||||
td(style='padding: 45px')
|
td(style='padding: 45px')
|
||||||
div(style='font-size: 16px; text-align: center; padding-bottom: 14px;')
|
div(style='font-size: 16px; padding-bottom: 14px;')
|
||||||
| A request to reset the password was made. Click
|
p
|
||||||
a(href=applicationUrl style='color: #3869d4; padding: 0px 5px;') here
|
| We received a request to reset your password.
|
||||||
| to set a new password.
|
p
|
||||||
div(style='font-size: 16px; text-align: center; padding-bottom: 14px;')
|
| Please
|
||||||
| If you did not request this recovery link you can safely ignore this email.
|
a(href=resetPasswordLink style='color: #3869d4; padding: 0px 5px;') click here
|
||||||
|
| to change your #{applicationTitle} password.
|
||||||
|
p
|
||||||
|
| If you did not request that your password be reset, you can safely ignore this email.
|
||||||
p(style='\
|
p(style='\
|
||||||
font-size: 13px;\
|
font-size: 13px;\
|
||||||
line-height: 24px;\
|
line-height: 24px;\
|
||||||
@@ -77,23 +80,5 @@ div(role='article' aria-roledescription='email' aria-label='' lang='en')
|
|||||||
margin-bottom: 20px;\
|
margin-bottom: 20px;\
|
||||||
color: #51545e;\
|
color: #51545e;\
|
||||||
')
|
')
|
||||||
a(href=applicationUrl style='color: #3869d4') Open #{applicationTitle}
|
if applicationUrl
|
||||||
tr
|
a(href=applicationUrl style='color: #3869d4') Open #{applicationTitle}
|
||||||
td
|
|
||||||
table.sm-w-full(align='center' style='\
|
|
||||||
margin-left: auto;\
|
|
||||||
margin-right: auto;\
|
|
||||||
text-align: center;\
|
|
||||||
width: 570px;\
|
|
||||||
' width='570' cellpadding='0' cellspacing='0' role='presentation')
|
|
||||||
tr
|
|
||||||
td(align='center' style='font-size: 16px; padding: 45px')
|
|
||||||
p(style='\
|
|
||||||
font-size: 13px;\
|
|
||||||
line-height: 24px;\
|
|
||||||
margin-top: 6px;\
|
|
||||||
margin-bottom: 20px;\
|
|
||||||
text-align: center;\
|
|
||||||
color: #a8aaaf;\
|
|
||||||
')
|
|
||||||
| #{applicationTitle}.
|
|
||||||
|
@@ -73,23 +73,5 @@ div(role='article' aria-roledescription='email' aria-label='' lang='en')
|
|||||||
margin-bottom: 20px;\
|
margin-bottom: 20px;\
|
||||||
color: #51545e;\
|
color: #51545e;\
|
||||||
')
|
')
|
||||||
a(href=applicationUrl style='color: #3869d4') Open #{applicationTitle}
|
if applicationUrl
|
||||||
tr
|
a(href=applicationUrl style='color: #3869d4') Open #{applicationTitle}
|
||||||
td
|
|
||||||
table.sm-w-full(align='center' style='\
|
|
||||||
margin-left: auto;\
|
|
||||||
margin-right: auto;\
|
|
||||||
text-align: center;\
|
|
||||||
width: 570px;\
|
|
||||||
' width='570' cellpadding='0' cellspacing='0' role='presentation')
|
|
||||||
tr
|
|
||||||
td(align='center' style='font-size: 16px; padding: 45px')
|
|
||||||
p(style='\
|
|
||||||
font-size: 13px;\
|
|
||||||
line-height: 24px;\
|
|
||||||
margin-top: 6px;\
|
|
||||||
margin-bottom: 20px;\
|
|
||||||
text-align: center;\
|
|
||||||
color: #a8aaaf;\
|
|
||||||
')
|
|
||||||
| #{applicationTitle}
|
|
||||||
|
Reference in New Issue
Block a user