Merge pull request #177 from LemmyNet/always_show_reset_password

Always show password reset link. Fixes #176
This commit is contained in:
Dessalines 2021-02-11 15:40:28 -05:00 committed by GitHub
commit 5ca6c8108a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 9 deletions

View file

@ -11,6 +11,10 @@
cursor: pointer;
}
.pointer-events {
pointer-events: auto !important;
}
.no-click {
pointer-events:none;
opacity: 0.65;

View file

@ -134,15 +134,15 @@ export class Login extends Component<any, State> {
class="form-control"
required
/>
{validEmail(this.state.loginForm.username_or_email) && (
<button
type="button"
onClick={linkEvent(this, this.handlePasswordReset)}
className="btn p-0 btn-link d-inline-block float-right text-muted small font-weight-bold"
>
{i18n.t('forgot_password')}
</button>
)}
<button
type="button"
onClick={linkEvent(this, this.handlePasswordReset)}
className="btn p-0 btn-link d-inline-block float-right text-muted small font-weight-bold pointer-events"
disabled={!validEmail(this.state.loginForm.username_or_email)}
title={i18n.t('no_password_reset')}
>
{i18n.t('forgot_password')}
</button>
</div>
</div>
<div class="form-group row">