1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-21 16:18:28 +01:00

fix typo with rememberedEmailCookieName

This commit is contained in:
Kyle Spearrin 2016-10-06 21:57:01 -04:00
parent 35d7f2e5f3
commit 711f1a07e9
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{
"appSettings": {
"rememberdEmailCookieName": "bit.rememberedEmail"
"rememberedEmailCookieName": "bit.rememberedEmail"
}
}

View File

@ -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();

View File

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