Hide Google OneTap in iframe

This commit is contained in:
Yang Luo 2024-01-07 10:33:25 +08:00
parent c542929835
commit e5a9594f90

View File

@ -468,6 +468,10 @@ class LoginPage extends React.Component {
}
renderOtherFormProvider(application) {
if (Setting.inIframe()) {
return null;
}
for (const providerConf of application.providers) {
if (providerConf.provider?.type === "Google" && providerConf.rule === "OneTap" && this.props.preview !== "auto") {
return (
@ -475,6 +479,8 @@ class LoginPage extends React.Component {
);
}
}
return null;
}
renderForm(application) {