From 711f1a07e9acc4b146a2072afec72dccf1ca2000 Mon Sep 17 00:00:00 2001
From: Kyle Spearrin <kyle.spearrin@gmail.com>
Date: Thu, 6 Oct 2016 21:57:01 -0400
Subject: [PATCH] fix typo with `rememberedEmailCookieName`

---
 src/Web/settings.json                                   | 2 +-
 src/Web/wwwroot/app/accounts/accountsLoginController.js | 6 +++---
 src/Web/wwwroot/app/settings.js                         | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

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"});