Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Handle null cookies results when checking for an authentication cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Oct 28, 2016
1 parent dcb380b commit dda178f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/lib/get-cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ exports.safeCookieSummary = function (host) {
exports.hasCookieForBackend = function (backend) {
let backendUrl = newURI(backend, null, null);
let cookieString = cookieService.getCookieStringFromHttp(backendUrl, backendUrl, null);
return cookieString.search(/user=/) != -1;
return cookieString && cookieString.search(/user=/) != -1;
};

0 comments on commit dda178f

Please sign in to comment.