Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit a718070

Browse files
committed
Fixed an issue where the signup page would log you out and redirect you without keeping your parameters (invite token).
exceptionless/Exceptionless#78
1 parent d209805 commit a718070

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/auth/signup-controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
}
7272

7373
if (authService.isAuthenticated()) {
74-
authService.logout();
74+
authService.logout(true, $stateParams);
7575
}
7676

7777
vm.authenticate = authenticate;

src/components/auth/auth-service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949
return $auth.login(user).then(onSuccess);
5050
}
5151

52-
function logout(withRedirect) {
52+
function logout(withRedirect, params) {
5353
function onSuccess() {
5454
$rootScope.$emit('auth:logout', {});
5555

5656
if (withRedirect) {
5757
stateService.save(['auth.']);
58-
return $state.go('auth.login');
58+
return $state.go('auth.login', params);
5959
}
6060
}
6161

0 commit comments

Comments
 (0)