Permalink
Browse files

Make sure site security is added when logging in via change password

  • Loading branch information...
1 parent 83e9a09 commit 3d98b29d5186ad3f269fc65e171c865c9c83fabd martin committed Sep 24, 2002
Showing with 1 addition and 0 deletions.
  1. +1 −0 login/change_password.php
@@ -29,6 +29,7 @@
$USER = $user;
$USER->loggedin = true;
+ $USER->site = $CFG->wwwroot; // for added security
save_session("USER");
set_moodle_cookie($USER->username);

0 comments on commit 3d98b29

Please sign in to comment.