[!] cloudos auth bug
This commit is contained in:
parent
22fd7467a0
commit
bd3a342c92
|
|
@ -51,9 +51,12 @@ import localStorage from "utils/localStorage";
|
||||||
import { Toaster } from "components/ads/Toast";
|
import { Toaster } from "components/ads/Toast";
|
||||||
import { Variant } from "components/ads/common";
|
import { Variant } from "components/ads/common";
|
||||||
import log from "loglevel";
|
import log from "loglevel";
|
||||||
|
import { getAppsmithConfigs } from "configs";
|
||||||
|
|
||||||
import { getCurrentUser } from "selectors/usersSelectors";
|
import { getCurrentUser } from "selectors/usersSelectors";
|
||||||
|
|
||||||
|
const { inCloudOS } = getAppsmithConfigs();
|
||||||
|
|
||||||
export function* createUserSaga(
|
export function* createUserSaga(
|
||||||
action: ReduxActionWithPromise<CreateUserRequest>,
|
action: ReduxActionWithPromise<CreateUserRequest>,
|
||||||
) {
|
) {
|
||||||
|
|
@ -106,6 +109,7 @@ export function* getCurrentUserSaga() {
|
||||||
response.data.username !== ANONYMOUS_USERNAME
|
response.data.username !== ANONYMOUS_USERNAME
|
||||||
) {
|
) {
|
||||||
if (
|
if (
|
||||||
|
inCloudOS &&
|
||||||
!response.data.cloudOSLogged &&
|
!response.data.cloudOSLogged &&
|
||||||
matchBuilderPath(window.location.pathname)
|
matchBuilderPath(window.location.pathname)
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue