Skip to content

Commit

Permalink
Made Login more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianKirmaier committed Dec 15, 2023
1 parent 2b8a136 commit e2984be
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public Route createRoute() {

return Route.empty()
.and(getNode("/", (r) -> new LoginPage(this, googleAuthProvider, googleCredentials)))
.and(getNode("/user/signed-in", (r) -> new SignedInPage(this, googleAuthProvider)))
.when((r) -> getUser() != null, Route.empty()
.and(getNode("/user/signed-in", (r) -> new SignedInPage(this, googleAuthProvider))))
.filter(DevFilter.create())
.filter(AuthFilters.oauth2(googleAuthProvider, googleCredentials, user -> {
setUser(user);
Expand Down

0 comments on commit e2984be

Please sign in to comment.