Commit 9fe5734c authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Set the institution cookie for the correct directory path

parent e917fd9d
......@@ -532,7 +532,7 @@ function login_submit(Pieform $form, $values) {
try {
if (call_static_method($authclass, 'authenticate_user_account', $username, $password, $institution)) {
// User logged in! Set a cookie to remember their institution
set_cookie('institution', $institution);
set_cookie('institution', $institution, 0, get_mahara_install_subdirectory());
$oldlastlogin = null;
if (!record_exists('usr', 'username', $username)) {
......
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