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 committed Oct 10, 2018
1 parent e5206ac commit bb63b04
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 bb63b04

Please sign in to comment.