diff --git a/l10n/de.js b/l10n/de.js index 493ddd1b4f34cb55f08ba6ee2aba2461c8b34b29..26546643aca66464ce963996c3b4a172aabbb564 100644 --- a/l10n/de.js +++ b/l10n/de.js @@ -24,7 +24,7 @@ OC.L10N.register( "This is to inform you that the recovery email for your %s account has been successfully updated.": "Hiermit wird Ihnen mitgeteilt, dass die Wiederherstellungs-E-Mail für Ihr %s-Konto erfolgreich aktualisiert wurde.", "To verify your new recovery email, please click on the following button.": "Um Ihre neue Wiederherstellungs-E-Mail zu überprüfen, klicken Sie bitte auf die folgende Schaltfläche.", "Verify recovery email": "Überprüfen der Wiederherstellungs-E-Mail", - "Please note that this link will be valid for the next 30 minutes.": "Bitte beachten Sie, dass dieser Link nur für die nächsten 30 Minuten gültig ist.", + "Please note that this link will be valid for the next 48 hours.": "Bitte beachten Sie, dass dieser Link nur für die nächsten 48 Stunden gültig ist.", "If you did not initiate this change, please contact our support team immediately.": "Wenn Sie diese Änderung nicht veranlasst haben, wenden Sie sich bitte umgehend an unser Support-Team.", "Thank you for choosing %s.": "Danke, dass Sie sich für %s entschieden haben.", "You verified recovery email successfully.": "Sie haben die Wiederherstellungs-E-Mail erfolgreich überprüft.", diff --git a/l10n/de.json b/l10n/de.json index 1df4dc68719cc44c56cda78edd213d02360c00fb..34a976ba63f6a3d68b88994b3314ecac0b0d4af6 100644 --- a/l10n/de.json +++ b/l10n/de.json @@ -22,7 +22,7 @@ "This is to inform you that the recovery email for your %s account has been successfully updated.": "Hiermit wird Ihnen mitgeteilt, dass die Wiederherstellungs-E-Mail für Ihr %s-Konto erfolgreich aktualisiert wurde.", "To verify your new recovery email, please click on the following button.": "Um Ihre neue Wiederherstellungs-E-Mail zu überprüfen, klicken Sie bitte auf die folgende Schaltfläche.", "Verify recovery email": "Überprüfen der Wiederherstellungs-E-Mail", - "Please note that this link will be valid for the next 30 minutes.": "Bitte beachten Sie, dass dieser Link nur für die nächsten 30 Minuten gültig ist.", + "Please note that this link will be valid for the next 48 hours.": "Bitte beachten Sie, dass dieser Link nur für die nächsten 48 Stunden gültig ist.", "If you did not initiate this change, please contact our support team immediately.": "Wenn Sie diese Änderung nicht veranlasst haben, wenden Sie sich bitte umgehend an unser Support-Team.", "Thank you for choosing %s.": "Danke, dass Sie sich für %s entschieden haben.", "You verified recovery email successfully.": "Sie haben die Wiederherstellungs-E-Mail erfolgreich überprüft.", @@ -41,4 +41,4 @@ "20250610_account_recovery_warning_subject": "Erforderliche Maßnahme: Richten Sie Ihre Wiederherstellungs-E-Mail vor der Kontolöschung ein.", "20250610_account_recovery_warning_body": "Sehr geehrter **{username}**,\n\nAus Sicherheitsgründen müssen Sie eine Wiederherstellungs-E-Mail-Adresse für Ihr Murena Cloud-Konto festlegen. Da Sie dies noch nicht getan haben, ist die Nutzung Ihrer E-Mail-Adresse eingeschränkt. Bitte richten Sie eine Wiederherstellungs-E-Mail-Adresse ein und bestätigen Sie diese, um alle Nutzungsbeschränkungen für Ihre E-Mail-Adresse aufzuheben. Wenn Sie dies nicht tun, wird Ihr Konto am **{disable_date}** deaktiviert und anschließend gelöscht.\n\n[MEINE WIEDERHERSTELLUNGS-E-MAIL-ADRESSE FESTLEGEN](https://murena.io/settings/user/security#recovery-email-form)\n\nMit freundlichen Grüßen,\nDas Murena-Team" },"pluralForm" :"nplurals=2; plural=n != 1;" -} \ No newline at end of file +} diff --git a/l10n/de_DE.js b/l10n/de_DE.js index c275e1aa31d7d06f2e3cfd9ce2ac912a70771111..bcb285e77d50a9bd6c07d3308b65ce692d3142d4 100644 --- a/l10n/de_DE.js +++ b/l10n/de_DE.js @@ -24,7 +24,7 @@ OC.L10N.register( "This is to inform you that the recovery email for your %s account has been successfully updated.": "Hiermit wird Ihnen mitgeteilt, dass die Wiederherstellungs-E-Mail für Ihr %s-Konto erfolgreich aktualisiert wurde.", "To verify your new recovery email, please click on the following button.": "Um Ihre neue Wiederherstellungs-E-Mail zu überprüfen, klicken Sie bitte auf die folgende Schaltfläche.", "Verify recovery email": "Überprüfen der Wiederherstellungs-E-Mail", - "Please note that this link will be valid for the next 30 minutes.": "Bitte beachten Sie, dass dieser Link nur für die nächsten 30 Minuten gültig ist.", + "Please note that this link will be valid for the next 48 hours.": "Bitte beachten Sie, dass dieser Link nur für die nächsten 48 Stunden gültig ist.", "If you did not initiate this change, please contact our support team immediately.": "Wenn Sie diese Änderung nicht veranlasst haben, wenden Sie sich bitte umgehend an unser Support-Team.", "Thank you for choosing %s.": "Danke, dass Sie sich für %s entschieden haben.", "You verified recovery email successfully.": "Sie haben die Wiederherstellungs-E-Mail erfolgreich überprüft.", diff --git a/l10n/de_DE.json b/l10n/de_DE.json index c9532e63b1a1e3e3def4b996dfe724c77f00ecc7..d905fce432a4759cea11552377ebd8b8ef9f0e8e 100644 --- a/l10n/de_DE.json +++ b/l10n/de_DE.json @@ -22,7 +22,7 @@ "This is to inform you that the recovery email for your %s account has been successfully updated.": "Hiermit wird Ihnen mitgeteilt, dass die Wiederherstellungs-E-Mail für Ihr %s-Konto erfolgreich aktualisiert wurde.", "To verify your new recovery email, please click on the following button.": "Um Ihre neue Wiederherstellungs-E-Mail zu überprüfen, klicken Sie bitte auf die folgende Schaltfläche.", "Verify recovery email": "Überprüfen der Wiederherstellungs-E-Mail", - "Please note that this link will be valid for the next 30 minutes.": "Bitte beachten Sie, dass dieser Link nur für die nächsten 30 Minuten gültig ist.", + "Please note that this link will be valid for the next 48 hours.": "Bitte beachten Sie, dass dieser Link nur für die nächsten 48 Stunden gültig ist.", "If you did not initiate this change, please contact our support team immediately.": "Wenn Sie diese Änderung nicht veranlasst haben, wenden Sie sich bitte umgehend an unser Support-Team.", "Thank you for choosing %s.": "Danke, dass Sie sich für %s entschieden haben.", "You verified recovery email successfully.": "Sie haben die Wiederherstellungs-E-Mail erfolgreich überprüft.", @@ -41,4 +41,4 @@ "20250610_account_recovery_warning_subject": "Erforderliche Maßnahme: Richten Sie Ihre Wiederherstellungs-E-Mail vor der Kontolöschung ein.", "20250610_account_recovery_warning_body": "Sehr geehrter **{username}**,\n\nAus Sicherheitsgründen müssen Sie eine Wiederherstellungs-E-Mail-Adresse für Ihr Murena Cloud-Konto festlegen. Da Sie dies noch nicht getan haben, ist die Nutzung Ihrer E-Mail-Adresse eingeschränkt. Bitte richten Sie eine Wiederherstellungs-E-Mail-Adresse ein und bestätigen Sie diese, um alle Nutzungsbeschränkungen für Ihre E-Mail-Adresse aufzuheben. Wenn Sie dies nicht tun, wird Ihr Konto am **{disable_date}** deaktiviert und anschließend gelöscht.\n\n[MEINE WIEDERHERSTELLUNGS-E-MAIL-ADRESSE FESTLEGEN](https://murena.io/settings/user/security#recovery-email-form)\n\nMit freundlichen Grüßen,\nDas Murena-Team" },"pluralForm" :"nplurals=2; plural=n != 1;" -} \ No newline at end of file +} diff --git a/l10n/en.js b/l10n/en.js index 7d2c57915a12c364270b082158d31d0091dff123..2f063a66dee74334db13bbc4cbf44b957fbcf209 100644 --- a/l10n/en.js +++ b/l10n/en.js @@ -15,7 +15,7 @@ OC.L10N.register( "This is to inform you that the recovery email for your %s account has been successfully updated.": "This is to inform you that the recovery email for your %s account has been successfully updated.", "To verify your new recovery email, please click on the following button.": "To verify your new recovery email, please click on the following button.", "Verify recovery email": "Verify recovery email", - "Please note that this link will be valid for the next 30 minutes.": "Please note that this link will be valid for the next 30 minutes.", + "Please note that this link will be valid for the next 48 hours.": "Please note that this link will be valid for the next 48 hours.", "If you did not initiate this change, please contact our support team immediately.": "If you did not initiate this change, please contact our support team immediately.", "Thank you for choosing %s.": "Thank you for choosing %s.", "Recovery email address is already taken.": "Recovery email address is already taken.", diff --git a/l10n/en.json b/l10n/en.json index 23c2d1b7a70aac92bcf388c88900aa6274d43630..888dbdefcbd3e9548f431b0bf2088c78eec46a96 100644 --- a/l10n/en.json +++ b/l10n/en.json @@ -14,7 +14,7 @@ "This is to inform you that the recovery email for your %s account has been successfully updated.": "This is to inform you that the recovery email for your %s account has been successfully updated.", "To verify your new recovery email, please click on the following button.": "To verify your new recovery email, please click on the following button.", "Verify recovery email": "Verify recovery email", - "Please note that this link will be valid for the next 30 minutes.": "Please note that this link will be valid for the next 30 minutes.", + "Please note that this link will be valid for the next 48 hours.": "Please note that this link will be valid for the next 48 hours.", "If you did not initiate this change, please contact our support team immediately.": "If you did not initiate this change, please contact our support team immediately.", "Thank you for choosing %s.": "Thank you for choosing %s.", "Recovery email address is already taken.": "Recovery email address is already taken.", @@ -41,4 +41,4 @@ "20250610_account_recovery_warning_body": "Dear **{username}**,\n\nFor security reasons you need to set a recovery email address for your Murena Cloud account. As you haven't done so yet, the usage of your email address is restricted. Please set and validate a recovery email address to remove all usage restriction on your email address. If you fail to do so, your account will be disabled on **{disable_date}** and then deleted.\n\n[SET MY RECOVERY EMAIL ADDRESS](https://murena.io/settings/user/security#recovery-email-form)\n\nBest regards,\nThe Murena Team" }, "pluralForm": "nplurals=2; plural=(n != 1);" -} \ No newline at end of file +} diff --git a/l10n/es.js b/l10n/es.js index 5478cf692f48ec20ea34ec3217b66cd944efafa3..295b7d2dbb658c35ee290d7536c0a7321ee999cf 100644 --- a/l10n/es.js +++ b/l10n/es.js @@ -24,7 +24,7 @@ OC.L10N.register( "This is to inform you that the recovery email for your %s account has been successfully updated.": "El correo electrónico de recuperación de tu cuenta %s se ha actualizado correctamente.", "To verify your new recovery email, please click on the following button.": "Para verificar tu nuevo correo electrónico de recuperación, haz clic en el siguiente botón.", "Verify recovery email": "Verificar el correo electrónico de recuperación", - "Please note that this link will be valid for the next 30 minutes.": "Ten en cuenta que este enlace solo será válido durante los próximos 30 minutos.", + "Please note that this link will be valid for the next 48 hours.": "Ten en cuenta que este enlace solo será válido durante las próximas 48 horas.", "If you did not initiate this change, please contact our support team immediately.": "Si no haz solicitado este cambio, pónte en contacto con nuestro equipo de asistencia inmediatamente.", "Thank you for choosing %s.": "Gracias por elegir %s.", "You verified recovery email successfully.": "Haz verificado correctamente el correo electrónico de recuperación.", diff --git a/l10n/es.json b/l10n/es.json index 4180fa2b5cb9d24ac66b8a4e5a5f1a4619d7761d..f78bf649609002053b7b2cb1bd750454466d3c6d 100644 --- a/l10n/es.json +++ b/l10n/es.json @@ -22,7 +22,7 @@ "This is to inform you that the recovery email for your %s account has been successfully updated.": "El correo electrónico de recuperación de tu cuenta %s se ha actualizado correctamente.", "To verify your new recovery email, please click on the following button.": "Para verificar tu nuevo correo electrónico de recuperación, haz clic en el siguiente botón.", "Verify recovery email": "Verificar el correo electrónico de recuperación", - "Please note that this link will be valid for the next 30 minutes.": "Ten en cuenta que este enlace solo será válido durante los próximos 30 minutos.", + "Please note that this link will be valid for the next 48 hours.": "Ten en cuenta que este enlace solo será válido durante las próximas 48 horas.", "If you did not initiate this change, please contact our support team immediately.": "Si no haz solicitado este cambio, pónte en contacto con nuestro equipo de asistencia inmediatamente.", "Thank you for choosing %s.": "Gracias por elegir %s.", "You verified recovery email successfully.": "Haz verificado correctamente el correo electrónico de recuperación.", @@ -41,4 +41,4 @@ "20250610_account_recovery_warning_subject": "Acción necesaria: Configure su correo electrónico de recuperación antes de eliminar la cuenta", "20250610_account_recovery_warning_body": "Estimado **{username}**,\n\nPor motivos de seguridad, debe establecer una dirección de correo electrónico de recuperación para su cuenta de Murena Cloud. Como aún no lo ha hecho, el uso de su dirección de correo electrónico está restringido. Configure y valide una dirección de correo electrónico de recuperación para eliminar todas las restricciones de uso de su dirección de correo electrónico. Si no lo hace, su cuenta se desactivará el **{disable_date}** y se eliminará.\n\n[ESTABLECER MI DIRECCIÓN DE CORREO ELECTRÓNICO DE RECUPERACIÓN](https://murena.io/settings/user/security#recovery-email-form)\n\nSaludos cordiales,\nEl equipo Murena" },"pluralForm" :"nplurals=2; plural=n != 1;" -} \ No newline at end of file +} diff --git a/l10n/fr.js b/l10n/fr.js index 1754bcfbb487813afb76da93f3b3fb6101203534..c3206d987d3c87f400b09c00b6c0aa11717852ae 100644 --- a/l10n/fr.js +++ b/l10n/fr.js @@ -24,7 +24,7 @@ OC.L10N.register( "This is to inform you that the recovery email for your %s account has been successfully updated.": "Nous vous informons que l'e-mail de récupération de votre compte %s a été mis à jour avec succès.", "To verify your new recovery email, please click on the following button.": "Pour vérifier votre nouvel email de récupération, veuillez cliquer sur le bouton suivant.", "Verify recovery email": "Vérifier l'e-mail de récupération", - "Please note that this link will be valid for the next 30 minutes.": "Veuillez noter que ce lien est valable pour les 30 prochaines minutes.", + "Please note that this link will be valid for the next 48 hours.": "Veuillez noter que ce lien est valable pour les 48 prochaines heures.", "If you did not initiate this change, please contact our support team immediately.": "Si vous n'êtes pas à l'origine de ce changement, veuillez contacter immédiatement notre équipe d'assistance.", "Thank you for choosing %s.": "Merci d'avoir choisi %s.", "You verified recovery email successfully.": "Vous avez vérifié l'email de récupération avec succès.", diff --git a/l10n/fr.json b/l10n/fr.json index 31a45d08b0c5e60148e8126fd06ee092102b88eb..f77cb7dfb4e914bcb2abdc38bb65c744dfad7b8a 100644 --- a/l10n/fr.json +++ b/l10n/fr.json @@ -22,7 +22,7 @@ "This is to inform you that the recovery email for your %s account has been successfully updated.": "Nous vous informons que l'e-mail de récupération de votre compte %s a été mis à jour avec succès.", "To verify your new recovery email, please click on the following button.": "Pour vérifier votre nouvel email de récupération, veuillez cliquer sur le bouton suivant.", "Verify recovery email": "Vérifier l'e-mail de récupération", - "Please note that this link will be valid for the next 30 minutes.": "Veuillez noter que ce lien est valable pour les 30 prochaines minutes.", + "Please note that this link will be valid for the next 48 hours.": "Veuillez noter que ce lien est valable pour les 48 prochaines heures.", "If you did not initiate this change, please contact our support team immediately.": "Si vous n'êtes pas à l'origine de ce changement, veuillez contacter immédiatement notre équipe d'assistance.", "Thank you for choosing %s.": "Merci d'avoir choisi %s.", "You verified recovery email successfully.": "Vous avez vérifié l'email de récupération avec succès.", @@ -41,4 +41,4 @@ "20250610_account_recovery_warning_subject": "Action requise : Configurez votre e-mail de récupération avant la suppression de votre compte", "20250610_account_recovery_warning_body": "Cher **{username}**,\n\nPour des raisons de sécurité, vous devez définir une adresse électronique de récupération pour votre compte Murena Cloud. Comme vous ne l'avez pas encore fait, l'utilisation de votre adresse e-mail est restreinte. Veuillez définir et valider une adresse e-mail de récupération afin de supprimer toute restriction d'utilisation de votre adresse e-mail. Si vous ne le faites pas, votre compte sera désactivé le **{disable_date}** puis supprimé.\n\n[DÉFINIR MON ADRESSE E-MAIL DE RÉCUPÉRATION](https://murena.io/settings/user/security#recovery-email-form)\n\nMeilleures salutations,\nL'équipe Murena" },"pluralForm" :"nplurals=2; plural=n > 1;" -} \ No newline at end of file +} diff --git a/l10n/it.js b/l10n/it.js index 1ed39f1bf7c4acd17f6e0ecacda1be0e7c53861b..d48055dde855698e2160cf4db49062f03a38069c 100644 --- a/l10n/it.js +++ b/l10n/it.js @@ -24,7 +24,7 @@ OC.L10N.register( "This is to inform you that the recovery email for your %s account has been successfully updated.": "ti informiamo che l'e-mail di recovery del tuo account %s è stata aggiornata con successo.", "To verify your new recovery email, please click on the following button.": "Per verificare la nuova e-mail di recovery, fai click sul seguente pulsante.", "Verify recovery email": "Verifica l'e-mail di recovery", - "Please note that this link will be valid for the next 30 minutes.": "Questo link sarà valido solo per i prossimi 30 minuti.", + "Please note that this link will be valid for the next 48 hours.": "Questo link sarà valido solo per le prossime 48 ore.", "If you did not initiate this change, please contact our support team immediately.": "Se non hai richiesto tu questa modifica, contatta immediatamente il nostro team di assistenza.", "Thank you for choosing %s.": "Grazie per aver scelto %s.", "You verified recovery email successfully.": "L'e-mail di recovery è stata verificata con successo.", diff --git a/l10n/it.json b/l10n/it.json index 135dda8b5b15eb1d03ab620b51e8dbd221f320c0..e886f0e1a54a48bd0eb2b12a08cbef277c8e1fa6 100644 --- a/l10n/it.json +++ b/l10n/it.json @@ -22,7 +22,7 @@ "This is to inform you that the recovery email for your %s account has been successfully updated.": "ti informiamo che l'e-mail di recovery del tuo account %s è stata aggiornata con successo.", "To verify your new recovery email, please click on the following button.": "Per verificare la nuova e-mail di recovery, fai click sul seguente pulsante.", "Verify recovery email": "Verifica l'e-mail di recovery", - "Please note that this link will be valid for the next 30 minutes.": "Questo link sarà valido solo per i prossimi 30 minuti.", + "Please note that this link will be valid for the next 48 hours.": "Questo link sarà valido solo per le prossime 48 ore.", "If you did not initiate this change, please contact our support team immediately.": "Se non hai richiesto tu questa modifica, contatta immediatamente il nostro team di assistenza.", "Thank you for choosing %s.": "Grazie per aver scelto %s.", "You verified recovery email successfully.": "L'e-mail di recovery è stata verificata con successo.", @@ -41,4 +41,4 @@ "20250610_account_recovery_warning_subject": "Azione necessaria: Impostare l'e-mail di recupero prima dell'eliminazione dell'account.", "20250610_account_recovery_warning_body": "Caro **{username}**,\n\nPer motivi di sicurezza è necessario impostare un indirizzo e-mail di recupero per il proprio account Murena Cloud. Poiché non l'avete ancora fatto, l'uso del vostro indirizzo e-mail è limitato. Si prega di impostare e convalidare un indirizzo e-mail di ripristino per rimuovere tutte le restrizioni all'uso del proprio indirizzo e-mail. In caso contrario, l'account verrà disattivato alla **{disable_date}** e quindi cancellato.\n\n[IMPOSTARE L'INDIRIZZO E-MAIL DI RECUPERO](https://murena.io/settings/user/security#recovery-email-form)\n\nCordiali saluti,\nIl team Murena" },"pluralForm" :"nplurals=2; plural=n != 1;" -} \ No newline at end of file +} diff --git a/lib/Service/RecoveryEmailService.php b/lib/Service/RecoveryEmailService.php index 4266d56baf78908689d2f902fcf3e69b2e3c0c3f..d63d21a730133fd1395965a2fac68f7eb1a0d2a7 100644 --- a/lib/Service/RecoveryEmailService.php +++ b/lib/Service/RecoveryEmailService.php @@ -44,7 +44,7 @@ class RecoveryEmailService { private IClientService $httpClientService; private ConfigMapper $configMapper; private array $apiConfig; - protected const TOKEN_LIFETIME = 60 * 30; // 30 minutes + protected const TOKEN_LIFETIME = 60 * 60 * 48; // 48 hours i.e. 2 days private const ATTEMPT_KEY = "recovery_email_attempts"; private const CACHE_KEY = 'recovery_email_rate_limit'; private const VERIFYMAIL_API_URL = 'https://verifymail.io/api/%s?key=%s'; @@ -543,7 +543,7 @@ class RecoveryEmailService { $leftButtonText, $link ); - $emailTemplate->addBodyText($l10n->t('Please note that this link will be valid for the next 30 minutes.')); + $emailTemplate->addBodyText($l10n->t('Please note that this link will be valid for the next 48 hours.')); $emailTemplate->addBodyText($l10n->t('If you did not initiate this change, please contact our support team immediately.')); $emailTemplate->addBodyText($l10n->t('Thank you for choosing %s.', [$this->themingDefaults->getName()])); $emailTemplate->addFooter('', $lang);