From 92403db32a9fb639b188d11f9145430c0b762406 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Wed, 6 Nov 2024 16:35:02 +0530 Subject: [PATCH 1/2] fix: better error message --- frappe/utils/password.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frappe/utils/password.py b/frappe/utils/password.py index 69f0b5ed54..3837f0bf3d 100644 --- a/frappe/utils/password.py +++ b/frappe/utils/password.py @@ -193,11 +193,11 @@ def decrypt(txt, encryption_key=None): # encryption_key in site_config is changed and not valid frappe.throw( _("Encryption key is invalid! Please check site_config.json") - + "
" + + "
" + _( - "If you have recently restored the site you may need to copy the site config contaning original Encryption Key." + "If you have recently restored the site, you may need to copy the site_config.json containing original Encryption Key." ) - + "
" + + "
" + _( "Please visit https://frappecloud.com/docs/sites/migrate-an-existing-site#encryption-key for more information." ), From 6b9960ca5c3f1f2871171f42d12d49c0a10ccb90 Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Tue, 24 Dec 2024 12:35:19 +0530 Subject: [PATCH 2/2] chore: update message Signed-off-by: Akhil Narang --- frappe/utils/password.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/password.py b/frappe/utils/password.py index 3837f0bf3d..e7da3e3417 100644 --- a/frappe/utils/password.py +++ b/frappe/utils/password.py @@ -195,7 +195,7 @@ def decrypt(txt, encryption_key=None): _("Encryption key is invalid! Please check site_config.json") + "
" + _( - "If you have recently restored the site, you may need to copy the site_config.json containing original Encryption Key." + "If you have recently restored the site, you may need to copy the site_config.json containing the original encryption key." ) + "
" + _(