From 476f2494915e72755c2a5057b9b567980c7abc58 Mon Sep 17 00:00:00 2001
From: Arie Peterson <arie@greenhost.nl>
Date: Tue, 16 May 2023 14:58:14 +0200
Subject: [PATCH] Adapt account recovery texts to new kratos behaviour

---
 README.md                          | 5 +----
 backend/web/static/base.js         | 2 +-
 backend/web/templates/recover.html | 7 ++++---
 3 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md
index e130d5a1..3d6bd755 100644
--- a/README.md
+++ b/README.md
@@ -152,9 +152,6 @@ To publish a new version of the helm chart:
 4. Update `CHANGELOG.md` and/or `deployment/helmchart/CHANGELOG.md` and check
    that it includes relevant changes, including ones added by renovatebot.
 5. Commit and push these changes to `main`.
-6. Create a new git tag for the new release and push it to gitlab as well. Note
-   that both the pipeline for the `main` branch and for the tag will use the
-   `nc` namespace, so you may not want to push the branch and tag right after
-   each other.
+6. Create a new git tag for the new release and push it to gitlab as well.
 
 The last step will trigger a CI run that will package and publish the helm chart.
diff --git a/backend/web/static/base.js b/backend/web/static/base.js
index 1a08b477..9cc508d9 100644
--- a/backend/web/static/base.js
+++ b/backend/web/static/base.js
@@ -382,7 +382,7 @@ function getFormElement(node, context) {
       label = 'Changing your e-mail address is not supported at this point.';
     } else {
       readonly = false;
-      label = 'Please provide your e-mail address. We will send a recovery link to that e-mail address.';
+      label = 'Please provide your e-mail address. If it is registered, we will send a recovery link to that address.';
     }
     return getFormInput(
       'email',
diff --git a/backend/web/templates/recover.html b/backend/web/templates/recover.html
index 63fc587f..9672553b 100644
--- a/backend/web/templates/recover.html
+++ b/backend/web/templates/recover.html
@@ -18,9 +18,10 @@
     <div id="contentMessages"></div>
     <div id="contentRecover"></div>
     <div id="contentRecoverRequested" style='display:none'>
-        Thank you for your request. We have sent you an email to recover
-        your account. Please check your e-mail and complete the account
-        recovery. You have limited time to complete this</div>
+        Thank you for your request. If there is an account registered with the
+        given address, we have sent you an e-mail to recover your account.
+        Please check your e-mail and complete the account recovery. You have
+        limited time to complete this.</div>
 
     <div id="contentHelp">
         <a href='login'>Back to login page</a> | <a href='https://stackspin.org'>About stackspin</a>
-- 
GitLab