Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdd7371e authored by Akhil's avatar Akhil 🙂
Browse files

Merge branch 'dev/reset-password-message' into 'main'

feat: Add encryption warning at forgot password page

See merge request !246
parents a81f015f 4060f1c0
Loading
Loading
Loading
Loading
+22 −1
Original line number Diff line number Diff line
@@ -1829,3 +1829,24 @@ a.legal {
    color: var(--color-main-text) !important;
    background-color: var(--color-main-background) !important;
}

#encryption-warning {
    background-color: var(--color-warning);
    border-inline-start: 4px solid var(--color-warning-text);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: row;
    gap: calc(2 * var(--default-grid-baseline));
    padding: calc(2 * var(--default-grid-baseline));
}

#encryption-warning-sign {
    color: var(--color-main-text);
    align-content: center;
    align-self: center;
}

#encryption-warning-sign img {
    height: 20px;
    width: 20px;
}
+43 −1
Original line number Diff line number Diff line
document.addEventListener('DOMContentLoaded', function() {
	function onLostPasswordContainerRendered(element) {
		let resetPasswordHeading = document.querySelector('.reset-password-form h2')
		if (resetPasswordHeading) {
			let div = document.createElement('div')
			let warning = t('core', 'Warning: You will lose access to all current encrypted data in your account (e.g. passwords) if you continue. We recommend you check the app called Passwords for your Murena Workspace password before proceeding.')
			let warningSignDiv = document.createElement('span')
			let warningDiv = document.createElement('div')
			let warningIcon = document.createElement('img')

			div.id = 'encryption-warning'
			div.className = 'notecard notecard--warning'
			warningSignDiv.id = 'encryption-warning-sign'
			warningDiv.id = 'encryption-warning-text'
			warningIcon.src = typeof OC !== 'undefined' && OC.imagePath
				? OC.imagePath('core', 'actions/alert-outline')
				: '/core/img/actions/alert-outline.svg'
			warningIcon.alt = ''
			warningIcon.setAttribute('aria-hidden', 'true')
			warningSignDiv.append(warningIcon)
			warningDiv.textContent = warning
			div.append(warningSignDiv, warningDiv)
			resetPasswordHeading.insertAdjacentElement('afterend', div)
		}
	}

	let lostPasswordContainer = document.querySelector('.lost-password-container')
	if (lostPasswordContainer) {
		onLostPasswordContainerRendered(lostPasswordContainer)
	} else {
		let lostPasswordObserver = new MutationObserver(function() {
			let lostPasswordContainer = document.querySelector('.lost-password-container')
			if (lostPasswordContainer) {
				lostPasswordObserver.disconnect()
				onLostPasswordContainerRendered(lostPasswordContainer)
			}
		})

		lostPasswordObserver.observe(document.body, {
			childList: true,
			subtree: true,
		})
	}

	document.addEventListener('click', function(event) {
		if (event.target.id === 'lost-password' && window.innerWidth > 1050) {
			document.querySelector('.banner-content').style.display = 'none'
@@ -46,4 +89,3 @@ document.addEventListener('DOMContentLoaded', function() {
		}
	}
})
+2 −1
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ OC.L10N.register(
    "Your files are encrypted. There will be no way to get your data back after your password is reset. If you are not sure what to do, please contact Murena Workspace at helpdesk@murena.com before you continue. Do you really want to continue?" : "Ihre Dateien sind verschlüsselt. Nachdem Ihr Passwort zurückgesetzt wurde, gibt es keine Möglichkeit mehr, Ihre Daten zurückzuerhalten. Wenn Sie nicht sicher sind, was zu tun ist, wenden Sie sich bitte an Murena Workspace unter helpdesk@murena.com bevor Sie fortfahren. Wollen Sie wirklich weitermachen?",
    "Password cannot be changed. Please contact Murena Workspace at helpdesk@murena.com." : "Das Passwort kann nicht geändert werden. Bitte kontaktieren Sie Murena Workspace unter helpdesk@murena.com.",
    "Due to encryption the search is only done on files' name." : "Aufgrund der Verschlüsselung erfolgt die Suche nur nach dem Namen der Dateien.",
    "If this account exists, a password reset message has been sent to its email address. If you do not receive it, verify your email address and/or Login, check your spam/junk folders or ask your local administration for help." : "Wenn dieses Konto existiert, wurde eine Nachricht zum Zurücksetzen des Passworts an die zugehörige Wiederherstellungs-E-Mail-Adresse gesendet. Wenn Sie sie nicht erhalten, überprüfen Sie bitte Ihren Login und Ihre Spam-/Junk-Ordner. Wenn Sie sich weiterhin nicht anmelden können, wenden Sie sich bitte an den Helpdesk unter https://murena.com/contact-us/."
    "If this account exists, a password reset message has been sent to its email address. If you do not receive it, verify your email address and/or Login, check your spam/junk folders or ask your local administration for help." : "Wenn dieses Konto existiert, wurde eine Nachricht zum Zurücksetzen des Passworts an die zugehörige Wiederherstellungs-E-Mail-Adresse gesendet. Wenn Sie sie nicht erhalten, überprüfen Sie bitte Ihren Login und Ihre Spam-/Junk-Ordner. Wenn Sie sich weiterhin nicht anmelden können, wenden Sie sich bitte an den Helpdesk unter https://murena.com/contact-us/.",
    "Warning: You will lose access to all current encrypted data in your account (e.g. passwords) if you continue. We recommend you check the app called Passwords for your Murena Workspace password before proceeding." : "Warnung: Sie verlieren den Zugriff auf alle aktuellen verschlüsselten Daten in Ihrem Konto (z. B. Passwörter), wenn Sie fortfahren. Wir empfehlen Ihnen, vor dem Fortfahren in der App namens Passwörter nach Ihrem Murena Workspace-Passwort zu suchen."
},
"nplurals=2; plural=n != 1;");
+2 −1
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@
    "Your files are encrypted. There will be no way to get your data back after your password is reset. If you are not sure what to do, please contact Murena Workspace at helpdesk@murena.com before you continue. Do you really want to continue?" : "Ihre Dateien sind verschlüsselt. Nachdem Ihr Passwort zurückgesetzt wurde, gibt es keine Möglichkeit mehr, Ihre Daten zurückzuerhalten. Wenn Sie nicht sicher sind, was zu tun ist, wenden Sie sich bitte an Murena Workspace unter helpdesk@murena.com bevor Sie fortfahren. Wollen Sie wirklich weitermachen?",
    "Password cannot be changed. Please contact Murena Workspace at helpdesk@murena.com." : "Das Passwort kann nicht geändert werden. Bitte kontaktieren Sie Murena Workspace unter helpdesk@murena.com.",
    "Due to encryption the search is only done on files' name." : "Aufgrund der Verschlüsselung erfolgt die Suche nur nach dem Namen der Dateien.",
    "If this account exists, a password reset message has been sent to its email address. If you do not receive it, verify your email address and/or Login, check your spam/junk folders or ask your local administration for help." : "Wenn dieses Konto existiert, wurde eine Nachricht zum Zurücksetzen des Passworts an die zugehörige Wiederherstellungs-E-Mail-Adresse gesendet. Wenn Sie sie nicht erhalten, überprüfen Sie bitte Ihren Login und Ihre Spam-/Junk-Ordner. Wenn Sie sich weiterhin nicht anmelden können, wenden Sie sich bitte an den Helpdesk unter https://murena.com/contact-us/."
    "If this account exists, a password reset message has been sent to its email address. If you do not receive it, verify your email address and/or Login, check your spam/junk folders or ask your local administration for help." : "Wenn dieses Konto existiert, wurde eine Nachricht zum Zurücksetzen des Passworts an die zugehörige Wiederherstellungs-E-Mail-Adresse gesendet. Wenn Sie sie nicht erhalten, überprüfen Sie bitte Ihren Login und Ihre Spam-/Junk-Ordner. Wenn Sie sich weiterhin nicht anmelden können, wenden Sie sich bitte an den Helpdesk unter https://murena.com/contact-us/.",
    "Warning: You will lose access to all current encrypted data in your account (e.g. passwords) if you continue. We recommend you check the app called Passwords for your Murena Workspace password before proceeding." : "Warnung: Sie verlieren den Zugriff auf alle aktuellen verschlüsselten Daten in Ihrem Konto (z. B. Passwörter), wenn Sie fortfahren. Wir empfehlen Ihnen, vor dem Fortfahren in der App namens Passwörter nach Ihrem Murena Workspace-Passwort zu suchen."
},"pluralForm" :"nplurals=2; plural=n != 1;"
}
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ OC.L10N.register(
    "Your files are encrypted. There will be no way to get your data back after your password is reset. If you are not sure what to do, please contact Murena Workspace at helpdesk@murena.com before you continue. Do you really want to continue?" : "Your files are encrypted. There will be no way to get your data back after your password is reset. If you are not sure what to do, please contact Murena Workspace at helpdesk@murena.com before you continue. Do you really want to continue?",
    "Password cannot be changed. Please contact Murena Workspace at helpdesk@murena.com." : "Password cannot be changed. Please contact Murena Workspace at helpdesk@murena.com.",
    "Due to encryption the search is only done on files' name." : "Due to encryption the search is only done on files' name.",
    "If this account exists, a password reset message has been sent to its email address. If you do not receive it, verify your email address and/or Login, check your spam/junk folders or ask your local administration for help." : "If this account exists, a password reset message has been sent to its recovery email address. If you do not receive it, please verify your login and check your spam/junk folders. If you still cannot login please contact the Helpdesk at https://murena.com/contact-us/."
    "If this account exists, a password reset message has been sent to its email address. If you do not receive it, verify your email address and/or Login, check your spam/junk folders or ask your local administration for help." : "If this account exists, a password reset message has been sent to its recovery email address. If you do not receive it, please verify your login and check your spam/junk folders. If you still cannot login please contact the Helpdesk at https://murena.com/contact-us/.",
    "Warning: You will lose access to all current encrypted data in your account (e.g. passwords) if you continue. We recommend you check the app called Passwords for your Murena Workspace password before proceeding." : "Warning: You will lose access to all current encrypted data in your account (e.g. passwords) if you continue. We recommend you check the app called Passwords for your Murena Workspace password before proceeding."
},
"");
Loading