Skip to content

Commit ad67fd7

Browse files
roundhillmokagio
andauthored
Add label/link to log in with email view to manually log in. (#3256)
Co-authored-by: Gio Lodi <[email protected]>
1 parent 7e2f177 commit ad67fd7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

lib/auth/index.tsx

+17-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class Auth extends Component<Props> {
3838
isCreatingAccount: false,
3939
passwordErrorMessage: null,
4040
onLine: window.navigator.onLine,
41-
usePassword: isDev, // Magic link login doesn't work in dev mode
41+
usePassword: false,
4242
emailForPasswordForm: null,
4343
};
4444

@@ -357,6 +357,22 @@ export class Auth extends Component<Props> {
357357
)}
358358
</button>
359359

360+
{!isCreatingAccount && !usePassword && (
361+
<Fragment>
362+
<div className="terms">
363+
We&rsquo;ll email you a code to log in, or you can
364+
<a
365+
href="#"
366+
rel="noopener noreferrer"
367+
onClick={this.togglePassword}
368+
>
369+
log in manually
370+
</a>
371+
.
372+
</div>
373+
</Fragment>
374+
)}
375+
360376
{usePassword && (
361377
<Fragment>
362378
<a

0 commit comments

Comments
 (0)