diff options
author | Sandro Santilli <strk@kbt.io> | 2017-03-11 10:11:54 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-11 17:11:54 +0800 |
commit | 8a98a25d8e538d7ef026147b14b937beba2b1056 (patch) | |
tree | 4aafd6d6ff3a6e06d10cc5e0b57807df27a448d8 /templates/user/settings/delete.tmpl | |
parent | c99e7e1a62788b7bfdda1d3189a2b8c2254efa96 (diff) | |
download | gitea-8a98a25d8e538d7ef026147b14b937beba2b1056.tar.gz gitea-8a98a25d8e538d7ef026147b14b937beba2b1056.zip |
Show a link to password reset from password change and delete account (#862)
It's helpful when you forgot your password thus cannot change it
(can happen if you log in via OAuth2 or OpenID)
Also make sure that both the delete-account and password-change
links to forgot-password will have the primary email pre-filled
Diffstat (limited to 'templates/user/settings/delete.tmpl')
-rw-r--r-- | templates/user/settings/delete.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/user/settings/delete.tmpl b/templates/user/settings/delete.tmpl index b95eb2105f..67f5782d6e 100644 --- a/templates/user/settings/delete.tmpl +++ b/templates/user/settings/delete.tmpl @@ -22,6 +22,9 @@ <div class="ui red button delete-button" data-type="form" data-form="#delete-form"> {{.i18n.Tr "settings.confirm_delete_account"}} </div> + <div> + <a href="{{AppSubUrl}}/user/forget_password?email={{.Email}}">{{.i18n.Tr "auth.forget_password"}}</a> + </div> </form> </div> </div> |