Skip to content

Commit

Permalink
Merge pull request #1034 from lowcoder-org/dev
Browse files Browse the repository at this point in the history
Dev > Main for v2.4.3
  • Loading branch information
FalkWolsky committed Jul 10, 2024
2 parents f27dbc4 + adfb07d commit 77a30e6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/packages/lowcoder-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lowcoder-sdk",
"version": "2.4.6",
"version": "2.4.7",
"type": "module",
"files": [
"src",
Expand Down
12 changes: 8 additions & 4 deletions client/packages/lowcoder/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,16 @@ class AppIndex extends React.Component<AppIndexProps, any> {
// make sure all users in this app have checked login info
if (!this.props.isFetchUserFinished || (this.props.currentUserId && !this.props.fetchHomeDataFinished)) {
const hideLoadingHeader = isTemplate || isAuthUnRequired(pathname);
return <ProductLoading hideHeader={hideLoadingHeader} />;
}
else {
// if the user just logged in, we send the event to posthog
if (sessionStorage.getItem('_just_logged_in_')) {
posthog.identify(this.props.currentUserId);
sessionStorage.removeItem('_just_logged_in_');
if (isLocalhost || isLowCoderDomain) {
if (sessionStorage.getItem('_just_logged_in_')) {
posthog.identify(this.props.currentUserId);
sessionStorage.removeItem('_just_logged_in_');
}
}
return <ProductLoading hideHeader={hideLoadingHeader} />;
}

// persisting the language in local storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const childrenMap = {
showHeaderInPublic: withDefault(BoolControl, true),
maxWidth: dropdownInputSimpleControl(OPTIONS, USER_DEFINE, "1920"),
themeId: valueComp<string>(DEFAULT_THEMEID),
preventAppStylesOverwriting: withDefault(BoolControl, false),
preventAppStylesOverwriting: withDefault(BoolControl, true),
customShortcuts: CustomShortcutsComp,
disableCollision: valueComp<boolean>(false),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ public interface UserRepository extends ReactiveMongoRepository<User, String> {
Mono<User> findByName(String rawUuid);

//email1 and email2 should be equal
Mono<User> findByEmailOrConnections_Email(String email1, String email2);
Flux<User> findByEmailOrConnections_Email(String email1, String email2);
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public Mono<User> findByName(String rawUuid) {
}

public Mono<User> findByEmailDeep(String email) {
return repository.findByEmailOrConnections_Email(email, email);
return repository.findByEmailOrConnections_Email(email, email).next();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private AuthUser formulateAuthUser() {
return AuthUser.builder()
.uid(username)
.username(username)
.email(username)
.authContext(authRequestContext)
.build();
}
Expand Down

0 comments on commit 77a30e6

Please sign in to comment.