Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix(login): Do not redirect to logout after a successful login when f…
Browse files Browse the repository at this point in the history
…orce-login is enabled

Closes gravitee-io/issues#1542
  • Loading branch information
brasseld authored and NicolasGeraud committed Oct 10, 2018
1 parent eb6eb45 commit 4cf1a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user/login/login.controller.ts
Expand Up @@ -72,7 +72,7 @@ class LoginController {
this.$rootScope.$broadcast('graviteeUserRefresh', {'user' : user});

let route = this.RouterService.getLastRoute();
if (route.from) {
if (route.from && route.from.name !== '' && route.from.name !== 'logout') {
this.$state.go(route.from.name, route.fromParams);
} else {
this.$state.go('portal.home');
Expand Down

0 comments on commit 4cf1a5f

Please sign in to comment.