Skip to content

Move encrypt-all password email to EmailTemplate - #36351

Merged
nickvergessen merged 2 commits into
masterfrom
bugfix/noid/move-encryption-password-email-to-template
Apr 14, 2023
Merged

Move encrypt-all password email to EmailTemplate#36351
nickvergessen merged 2 commits into
masterfrom
bugfix/noid/move-encryption-password-email-to-template

Conversation

@nickvergessen

@nickvergessennickvergessen commented Jan 25, 2023

Copy link
Copy Markdown
Member

Steps

  1. Install nextcloud
  2. Configure an email address for the user
  3. Enable encryption app occ app:enable encryption
  4. Disable master key occ encryption:disable-master-key (confirm with y)
  5. Enable encryption occ encryption:enable
  6. Disable master key again to be sure occ encryption:disable-master-key (confirm with y)
  7. Run encrypt all occ encryption:encrypt-all
    i. Do you really want to continue? (confirm with y)
    ii. Do you want to send the passwords directly to the users by mail? (confirm with y)
BeforeBeforeAfter
Regression from #10898
grafik
with fixed logo path
grafik
grafik

Checklist

@nickvergessen
nickvergessen marked this pull request as draft January 25, 2023 10:44
@nickvergessennickvergessen added this to the Nextcloud 26 milestone Jan 25, 2023
@nickvergessennickvergessen self-assigned this Jan 25, 2023
@blizzzblizzz mentioned this pull request Feb 1, 2023
@skjnldsvskjnldsv mentioned this pull request Feb 23, 2023
@blizzzblizzz mentioned this pull request Mar 7, 2023
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
nickvergessen requested review from a team, ArtificialOwl, Pytal, blizzz, icewind1991, skjnldsv and szaimen and removed request for a teamMarch 8, 2023 11:31
@nickvergessen
nickvergessen marked this pull request as ready for review March 8, 2023 11:40
@nickvergessen
nickvergessenforce-pushed the bugfix/noid/move-encryption-password-email-to-template branch from 4b0af81 to 0f7146cCompareMarch 8, 2023 11:40
@nickvergessen

Copy link
Copy Markdown
MemberAuthor

Either this PR needs to be backported or:

diff --git a/apps/encryption/templates/mail.php b/apps/encryption/templates/mail.php
index 0db4b67d08d..545d080b1d3 100644
--- a/apps/encryption/templates/mail.php+++ b/apps/encryption/templates/mail.php@@ -7,7 +7,7 @@
<table cellspacing="0" cellpadding="0" border="0" width="600px">
<tr>
<td colspan="2" bgcolor="<?php p($theme->getColorPrimary());?>">
- <img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL(image_path('core', 'logo-mail.png'))); ?>" alt="<?php p($theme->getName()); ?>"/>+ <img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL(image_path('core', 'logo/logo-mail.png'))); ?>" alt="<?php p($theme->getName()); ?>"/>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>

To prevent the exception from the first "Before" screenshot.

I would vote for backporting this PR here to 26 after 26.0.0 is out (string freeze) and backporting the above diff to all other versions.

@nickvergessen

Copy link
Copy Markdown
MemberAuthor

/backport to stable26

@szaimen
szaimen removed their request for review March 8, 2023 12:49
Signed-off-by: Joas Schilling <coding@schilljs.com>

@kesselbkesselb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool 😎

image

@joshtrichards

Copy link
Copy Markdown
Member

Also fixes #35808 (but not for NC25 as-is until #36351 (comment) gets created in a separate PR).

@nickvergessen

Copy link
Copy Markdown
MemberAuthor

Feel free to send it as a Pull Request

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@nickvergessen@joshtrichards@kesselb@marcoambrosini