Add password reset action to profile page

This commit is contained in:
Johannes Zellner
2021-09-09 22:24:35 +02:00
parent d4ffba86a6
commit 04eb179899
3 changed files with 27 additions and 1 deletions

View File

@@ -361,6 +361,11 @@
{{ user.fallbackEmail }} <a href="" ng-click="fallbackEmailChange.show()" ng-hide="user.source || config.profileLocked"><i class="fa fa-edit text-small"></i></a>
</td>
</tr>
<tr>
<td colspan="2" class="text-right">
<a href="" ng-click="sendPasswordReset()">I forgot my password</a>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr>
<td class="text-muted" style="vertical-align: middle;">{{ 'profile.language' | tr }}</td>
@@ -370,7 +375,7 @@
</tr>
<tr>
<td class="text-right" colspan="2" style="vertical-align: top;">
<br/>
<br/>
<button class="btn" ng-class="user.twoFactorAuthenticationEnabled ? 'btn-danger' : 'btn-success'" ng-click="twoFactorAuthentication.show()">{{ user.twoFactorAuthenticationEnabled ? 'profile.disable2FAAction' : 'profile.enable2FAAction' | tr }}</button>
<button class="btn btn-primary" ng-click="passwordchange.show()" ng-hide="user.source">{{ 'profile.changePasswordAction' | tr }}</button>
</td>