diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-09-13 16:16:06 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-09-13 16:17:54 +0100 |
commit | a56a86202640279d7eb48179c520477f64173a61 (patch) | |
tree | ef5befa088024550ea24a9c7a03d53d532f78e77 /templates | |
parent | a7ef8f35012657eb162a507d6ea897d779cb672f (diff) |
Say “Set password”, not Change, if none set.
Fixes #2235.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/my/my.html | 8 |
1 files changed, 7 insertions, 1 deletions
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 %] |