mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Make sure site security is added when logging in via change password
This commit is contained in:
parent
83e9a09e34
commit
3d98b29d51
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
$USER = $user;
|
$USER = $user;
|
||||||
$USER->loggedin = true;
|
$USER->loggedin = true;
|
||||||
|
$USER->site = $CFG->wwwroot; // for added security
|
||||||
save_session("USER");
|
save_session("USER");
|
||||||
|
|
||||||
set_moodle_cookie($USER->username);
|
set_moodle_cookie($USER->username);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue