Unverified Commit b4b3f327 authored by alexpott's avatar alexpott

Issue #3078676 by chr.fritsch, justafish: drupalUserIsLoggedIn doesn't work on https sites

(cherry picked from commit ffce54ec)
parent 4cbcc932
......@@ -10,7 +10,7 @@ exports.command = function drupalUserIsLoggedIn(callback) {
if (typeof callback === 'function') {
this.getCookies(cookies => {
const sessionExists = cookies.value.some(cookie =>
cookie.name.match(/^SESS/),
cookie.name.match(/^S?SESS/),
);
callback.call(this, sessionExists);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment