diff options
Diffstat (limited to 'templates/web/base/my/my.html')
-rw-r--r-- | templates/web/base/my/my.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/templates/web/base/my/my.html b/templates/web/base/my/my.html index 64ddb768e..048d99ef9 100644 --- a/templates/web/base/my/my.html +++ b/templates/web/base/my/my.html @@ -60,13 +60,17 @@ li .my-account-buttons a { </ul> <p class="my-account-buttons"> + [% IF c.session.oauth.change_password_uri %] + <a href="[% c.session.oauth.change_password_uri | html %]">[% loc('Change password') %]</a> + [% ELSE %] <a href="/auth/change_password"> - [%~ IF c.user.password ~%] - [% loc('Change password') %] - [%~ ELSE ~%] - [% loc('Set password') %] - [%~ END ~%] + [%~ IF c.user.password ~%] + [% loc('Change password') %] + [%~ ELSE ~%] + [% loc('Set password') %] + [%~ END ~%] </a> + [% END %] [% IF c.user AND (c.user.from_body OR c.user.is_superuser) %] <a href="/auth/generate_token">[% loc('Security') %]</a> [% END %] |