mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
return state for org create on register/login
This commit is contained in:
@@ -6,7 +6,16 @@ angular
|
||||
var params = $location.search();
|
||||
var stateParams = $state.params;
|
||||
|
||||
$scope.returnState = $state.params.returnState;
|
||||
if (!stateParams.returnState && stateParams.org) {
|
||||
$scope.returnState = {
|
||||
name: 'backend.user.settingsCreateOrg',
|
||||
params: { plan: $state.params.org }
|
||||
};
|
||||
}
|
||||
else {
|
||||
$scope.returnState = stateParams.returnState;
|
||||
}
|
||||
|
||||
$scope.success = false;
|
||||
$scope.model = {
|
||||
email: params.email ? params.email : stateParams.email
|
||||
|
||||
Reference in New Issue
Block a user