Skip to content

Conversation

nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Jan 25, 2023

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)
Before Before After
Regression from #10898
grafik
with fixed logo path
grafik
grafik

Checklist

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 team March 8, 2023 11:31
@nickvergessen nickvergessen marked this pull request as ready for review March 8, 2023 11:40
@nickvergessen nickvergessen force-pushed the bugfix/noid/move-encryption-password-email-to-template branch from 4b0af81 to 0f7146c Compare March 8, 2023 11:40
@nickvergessen
Copy link
Member Author

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
Member Author

/backport to stable26

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

@kesselb kesselb left a comment

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
Member

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

@nickvergessen
Copy link
Member Author

Feel free to send it as a Pull Request

Sign up for free to 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