mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-65075 tool_mobile: Allow auto-login keys only for requests from Moodle apps
This change enhances security and avoid any kind of XSS attack.
This commit is contained in:
parent
280cfdf05c
commit
2b34a55d5a
6 changed files with 49 additions and 1 deletions
|
@ -57,7 +57,8 @@ $functions = array(
|
|||
'classname' => 'tool_mobile\external',
|
||||
'methodname' => 'get_autologin_key',
|
||||
'description' => 'Creates an auto-login key for the current user.
|
||||
Is created only in https sites and is restricted by time and ip address.',
|
||||
Is created only in https sites and is restricted by time, ip address and only works if the request
|
||||
comes from the Moodle mobile or desktop app.',
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue