diff --git a/src/app/accounts/accountsLoginController.js b/src/app/accounts/accountsLoginController.js index 92e3f2c592..02402f9ff9 100644 --- a/src/app/accounts/accountsLoginController.js +++ b/src/app/accounts/accountsLoginController.js @@ -5,10 +5,10 @@ angular $state, appSettings, $analytics) { var returnState = $state.params.returnState; var rememberedEmail = $cookies.get(appSettings.rememberedEmailCookieName); - if (rememberedEmail) { + if (rememberedEmail || $state.params.email) { $scope.model = { - email: rememberedEmail, - rememberEmail: true + email: $state.params.email ? $state.params.email : rememberedEmail, + rememberEmail: rememberedEmail !== null }; } diff --git a/src/app/accounts/accountsOrganizationAcceptController.js b/src/app/accounts/accountsOrganizationAcceptController.js index 4f76292ba9..806d85a6d3 100644 --- a/src/app/accounts/accountsOrganizationAcceptController.js +++ b/src/app/accounts/accountsOrganizationAcceptController.js @@ -7,7 +7,7 @@ angular params: $state.params }; - if (!$state.params.organizationId || !$state.params.organizationUserId || !$state.params.token) { + if (!$state.params.organizationId || !$state.params.organizationUserId || !$state.params.token || !$state.params.email) { $state.go('frontend.login.info').then(function () { toastr.error('Invalid parameters.'); }); diff --git a/src/app/accounts/accountsRegisterController.js b/src/app/accounts/accountsRegisterController.js index a2e84a5e22..24b5b0f099 100644 --- a/src/app/accounts/accountsRegisterController.js +++ b/src/app/accounts/accountsRegisterController.js @@ -4,12 +4,14 @@ angular .controller('accountsRegisterController', function ($scope, $location, apiService, cryptoService, validationService, $analytics, $state) { var params = $location.search(); + var stateParams = $state.params; $scope.returnState = $state.params.returnState; $scope.success = false; $scope.model = { - email: params.email + email: params.email ? params.email : stateParams.email }; + $scope.readOnlyEmail = stateParams.email !== null; $scope.registerPromise = null; $scope.register = function (form) { diff --git a/src/app/accounts/views/accountsOrganizationAccept.html b/src/app/accounts/views/accountsOrganizationAccept.html index 24fc67140d..3078d2c862 100644 --- a/src/app/accounts/views/accountsOrganizationAccept.html +++ b/src/app/accounts/views/accountsOrganizationAccept.html @@ -11,17 +11,24 @@
Join Organization
+{{state.params.email}}
- You've been invited to join the ____ organization. To accept the invitation, you need to log in or + You've been invited to join the an organization. To accept the invitation, you need to log in or create a new bitwarden account.
+ Create Account +
You'll use your email address to log in.
+ |
|
- + | - | + |
{{user.email}}
{{user.name}}
|
- + | {{user.typeName}} | -+ | {{user.statusName}} |