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