setting: Fix password label is even shown when email auth is disabled.

This commit is contained in:
Vishwesh Jainkuniya 2018-02-10 18:58:16 +05:30 committed by Tim Abbott
parent 1f52eea0e4
commit aae11bf88d
1 changed files with 2 additions and 2 deletions

View File

@ -73,17 +73,17 @@
</form> </form>
<form class="password-change-form grid"> <form class="password-change-form grid">
{{#if page_params.realm_email_auth_enabled}}
<div class="user-name-section"> <div class="user-name-section">
<label class="inline-block title">{{t "Password" }}</label> <label class="inline-block title">{{t "Password" }}</label>
<a id="change_password" {{#if page_params.realm_email_auth_enabled}}href="#change_password"{{/if}}> <a id="change_password" {{#if page_params.realm_email_auth_enabled}}href="#change_password"{{/if}}>
{{#if page_params.realm_email_auth_enabled}}
<div class="input-group inline-block" id="pw_change_link"> <div class="input-group inline-block" id="pw_change_link">
<button type="button" class="change_password_button small button rounded inline-block" data-dismiss="modal">{{t "********" }}<i class="fa fa-pencil"></i> <button type="button" class="change_password_button small button rounded inline-block" data-dismiss="modal">{{t "********" }}<i class="fa fa-pencil"></i>
</button> </button>
</div> </div>
{{/if}}
</a> </a>
</div> </div>
{{/if}}
<div id="change_password_modal" class="modal modal-bg hide" tabindex="-1" role="dialog" <div id="change_password_modal" class="modal modal-bg hide" tabindex="-1" role="dialog"
aria-labelledby="change_password_modal_label" aria-hidden="true"> aria-labelledby="change_password_modal_label" aria-hidden="true">