mirror of
https://github.com/outline/outline.git
synced 2026-12-06 11:12:32 +03:00
chore: Remove OTP for desktop login for now (#9566)
This commit is contained in:
1 parent
a6b0fcff48
commit
d5504be686
2 files changed
+2
-2
No files matched your search
@@ -202,7 +202,7 @@ function Login({ children, onBack }: Props) {
|
||||
(provider) => provider.id === auth.lastSignedIn && !isCreate
|
||||
);
|
||||
const clientType = Desktop.isElectron() ? Client.Desktop : Client.Web;
|
||||
const preferOTP = Desktop.isElectron() || isPWA;
|
||||
const preferOTP = isPWA;
|
||||
|
||||
if (firstRun) {
|
||||
return <WorkspaceSetup onBack={onBack} />;
|
||||
|
||||
@@ -28,7 +28,7 @@ function AuthenticationProvider(props: Props) {
|
||||
const [email, setEmail] = React.useState("");
|
||||
const { isCreate, id, name, authUrl, onEmailSuccess, ...rest } = props;
|
||||
const clientType = Desktop.isElectron() ? Client.Desktop : Client.Web;
|
||||
const preferOTP = Desktop.isElectron() || isPWA;
|
||||
const preferOTP = isPWA;
|
||||
|
||||
const handleChangeEmail = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
setEmail(event.target.value);
|
||||
|
||||
Reference in new issue
Block a user