app/assets/javascripts/ember-auth/ember-auth.js in ember-auth-rails-3.4.0 vs app/assets/javascripts/ember-auth/ember-auth.js in ember-auth-rails-3.4.1
- old
+ new
@@ -197,10 +197,10 @@
return;
}
json = JSON.parse((Auth.get('jqxhr')).responseText);
token = json[Auth.Config.get('rememberTokenKey')];
curToken = $.cookie('ember-auth-remember-me');
- if (token !== curToken) {
+ if (token && token !== curToken) {
return $.cookie('ember-auth-remember-me', token, {
expires: Auth.Config.get('rememberPeriod')
});
}
},