mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
chore: Remove OTP for desktop login for now (#9566)
This commit is contained in:
@@ -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