]> git.mjollnir.org Git - moodle.git/commitdiff
Make sure site security is added when logging in via change password
authormartin <martin>
Tue, 24 Sep 2002 01:28:19 +0000 (01:28 +0000)
committermartin <martin>
Tue, 24 Sep 2002 01:28:19 +0000 (01:28 +0000)
login/change_password.php

index ccd5a9b9da7a42496d59ba5860f067f6f4cae326..7f36266e6f55450547113c4810f35deb563cfdd2 100644 (file)
@@ -29,6 +29,7 @@
 
                        $USER = $user;
                        $USER->loggedin = true;
+            $USER->site = $CFG->wwwroot;   // for added security
             save_session("USER");
 
                        set_moodle_cookie($USER->username);