diff --git a/src/Web/settings.json b/src/Web/settings.json index 422a72a728..430bdb234d 100644 --- a/src/Web/settings.json +++ b/src/Web/settings.json @@ -1,5 +1,5 @@ { "appSettings": { - "rememberdEmailCookieName": "bit.rememberedEmail" + "rememberedEmailCookieName": "bit.rememberedEmail" } } diff --git a/src/Web/wwwroot/app/accounts/accountsLoginController.js b/src/Web/wwwroot/app/accounts/accountsLoginController.js index 1e4ed23655..827b69985d 100644 --- a/src/Web/wwwroot/app/accounts/accountsLoginController.js +++ b/src/Web/wwwroot/app/accounts/accountsLoginController.js @@ -2,7 +2,7 @@ angular .module('bit.accounts') .controller('accountsLoginController', function ($scope, $rootScope, $cookies, apiService, cryptoService, authService, $state, appSettings, $analytics) { - var rememberedEmail = $cookies.get(appSettings.rememberdEmailCookieName); + var rememberedEmail = $cookies.get(appSettings.rememberedEmailCookieName); if (rememberedEmail) { $scope.model = { email: rememberedEmail, @@ -19,12 +19,12 @@ angular cookieExpiration.setFullYear(cookieExpiration.getFullYear() + 10); $cookies.put( - appSettings.rememberdEmailCookieName, + appSettings.rememberedEmailCookieName, model.email, { expires: cookieExpiration }); } else { - $cookies.remove(appSettings.rememberdEmailCookieName); + $cookies.remove(appSettings.rememberedEmailCookieName); } var profile = authService.getUserProfile(); diff --git a/src/Web/wwwroot/app/settings.js b/src/Web/wwwroot/app/settings.js index c515701daa..0f2aa55377 100644 --- a/src/Web/wwwroot/app/settings.js +++ b/src/Web/wwwroot/app/settings.js @@ -1,2 +1,2 @@ angular.module("bit") -.constant("appSettings", {"rememberdEmailCookieName":"bit.rememberedEmail","version":"0.0.1","environment":"Development","apiUri":"http://localhost:4000"}); +.constant("appSettings", {"rememberedEmailCookieName":"bit.rememberedEmail","version":"0.0.1","environment":"Development","apiUri":"http://localhost:4000"});