Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
[MM-50430] Fix Forgot Password link when email login is enabled (#12193)
Browse files Browse the repository at this point in the history
Co-authored-by: Mattermost Build <[email protected]>
  • Loading branch information
Konstantinos Pittas and mattermost-build authored Mar 3, 2023
1 parent bf5331e commit 40e42e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions components/login/__snapshots__/login.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ exports[`components/login/Login should match snapshot with base login 1`] = `
onChange={[Function]}
value=""
/>
<div
className="login-body-card-form-link"
>
<Link
to="/reset_password"
>
Forgot your password?
</Link>
</div>
<SaveButton
btnClass="btn-primary"
defaultMessage="Log in"
Expand Down
2 changes: 1 addition & 1 deletion components/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ const Login = ({onCustomizeHeader}: LoginProps) => {
hasError={hasError}
disabled={isWaiting}
/>
{(enableSignInWithUsername || enableSignUpWithEmail) && (
{(enableSignInWithUsername || enableSignInWithEmail) && (
<div className='login-body-card-form-link'>
<Link to='/reset_password'>
{formatMessage({id: 'login.forgot', defaultMessage: 'Forgot your password?'})}
Expand Down

0 comments on commit 40e42e3

Please sign in to comment.