aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--templates/web/base/my/my.html8
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 903dd9520..390443c8a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@
- Bugfixes:
- Fix display of area/pins on body page when using Bing or TonerLite map.
- Do not scan through all problems to show /_dev pages.
+ - Say “Set password”, not Change, if no password set.
- Development improvements:
- Cobrand hook for disabling updates on individual problems.
- Cobrand hook for disallowing title moderation. #2228
diff --git a/templates/web/base/my/my.html b/templates/web/base/my/my.html
index 459fa5266..64ddb768e 100644
--- a/templates/web/base/my/my.html
+++ b/templates/web/base/my/my.html
@@ -60,7 +60,13 @@ li .my-account-buttons a {
</ul>
<p class="my-account-buttons">
- <a href="/auth/change_password">[% loc('Change password') %]</a>
+ <a href="/auth/change_password">
+ [%~ IF c.user.password ~%]
+ [% loc('Change password') %]
+ [%~ ELSE ~%]
+ [% loc('Set password') %]
+ [%~ END ~%]
+ </a>
[% IF c.user AND (c.user.from_body OR c.user.is_superuser) %]
<a href="/auth/generate_token">[% loc('Security') %]</a>
[% END %]