mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-61707 authentication: Remove presignup session upon user signup
This commit is contained in:
parent
99d1a03857
commit
53e622ba88
3 changed files with 7 additions and 1 deletions
|
@ -383,5 +383,8 @@ $definitions = array(
|
|||
'simplekeys' => true,
|
||||
'simpledata' => true,
|
||||
'ttl' => 1800,
|
||||
'invalidationevents' => array(
|
||||
'createduser',
|
||||
)
|
||||
),
|
||||
);
|
||||
|
|
|
@ -122,6 +122,9 @@ function user_create_user($user, $updatepassword = true, $triggerevent = true) {
|
|||
\core\event\user_created::create_from_userid($newuserid)->trigger();
|
||||
}
|
||||
|
||||
// Purge the associated caches.
|
||||
cache_helper::purge_by_event('createduser');
|
||||
|
||||
return $newuserid;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$version = 2018051701.02; // 20180517 = branching date YYYYMMDD - do not modify!
|
||||
$version = 2018051701.03; // 20180517 = branching date YYYYMMDD - do not modify!
|
||||
// RR = release increments - 00 in DEV branches.
|
||||
// .XX = incremental changes.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue