UX: Add show password on mobile login modal (#21003)
* UX: Add show password on mobile login modal * Update app/assets/javascripts/discourse/app/templates/mobile/modal/login.hbs Co-authored-by: Jarek Radosz <jradosz@gmail.com> --------- Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
parent
2b4dc97551
commit
69274cdb88
|
@ -42,7 +42,7 @@
|
|||
<Input
|
||||
@value={{this.loginPassword}}
|
||||
class={{value-entered this.loginPassword}}
|
||||
@type="password"
|
||||
@type={{if this.maskPassword "password" "text"}}
|
||||
id="login-account-password"
|
||||
maxlength="200"
|
||||
disabled={{this.showSecondFactor}}
|
||||
|
@ -50,11 +50,17 @@
|
|||
<label class="alt-placeholder" for="login-account-password">{{i18n
|
||||
"login.password"
|
||||
}}</label>
|
||||
<a
|
||||
href
|
||||
id="forgot-password-link"
|
||||
{{on "click" this.handleForgotPassword}}
|
||||
>{{i18n "forgot_password.action"}}</a>
|
||||
<div class="login__password-links">
|
||||
<a
|
||||
href
|
||||
id="forgot-password-link"
|
||||
{{on "click" this.handleForgotPassword}}
|
||||
>{{i18n "forgot_password.action"}}</a>
|
||||
<TogglePasswordMask
|
||||
@maskPassword={{this.maskPassword}}
|
||||
@togglePasswordMask={{this.togglePasswordMask}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<SecondFactorForm
|
||||
|
|
Loading…
Reference in New Issue