MDL-41999 do not use $USER->password directly

This commit is contained in:
Petr Škoda 2013-09-27 10:51:13 +02:00
parent 65a4f26d8a
commit 2aaf332bb1
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ switch($action) {
$weekend = intval($CFG->calendar_weekend);
}
$authtoken = sha1($USER->id . $USER->password . $CFG->calendar_exportsalt);
$authtoken = sha1($USER->id . $DB->get_field('user', 'password', array('id'=>$USER->id)). $CFG->calendar_exportsalt);
// Let's populate some vars to let "common tasks" be somewhat smart...
// If today it's weekend, give the "next week" option
$allownextweek = $weekend & (1 << $now['wday']);