mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Hide Google OneTap in iframe
This commit is contained in:
parent
c542929835
commit
e5a9594f90
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user