Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion factor/token/classes/factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ public function post_pass_state() {
$secretmanager->create_secret($expiry, false, $secret);

// All the prep is now done, we can set this cookie.
setcookie($cookie, $secret, $expirytime, $CFG->sessioncookiepath, $CFG->sessioncookiedomain, false, true);
$cookiesecure = 1 == get_config('core', 'cookiesecure');
$cookiehttponly = 1 == get_config('core', 'cookiehttponly');
setcookie($cookie, $secret, $expirytime, $CFG->sessioncookiepath, $CFG->sessioncookiedomain, $cookiesecure, $cookiehttponly);

// Finally emit a log event for storing the cookie.
$state = [
Expand Down