Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
92ba7648
Commit
92ba7648
authored
Nov 15, 2016
by
David Monllaó
Committed by
Dan Poltawski
Nov 15, 2016
Browse files
Merge branch 'MDL-56905-master' of
git://github.com/jleyva/moodle
parents
7afc76fb
5222cb1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin/tool/mobile/launch.php
View file @
92ba7648
...
...
@@ -63,8 +63,8 @@ $token = external_generate_token_for_current_user($service);
$privatetoken
=
$token
->
privatetoken
;
external_log_token_request
(
$token
);
//
Invalidate
the private token if
external_generate_token_for_current_user did not create a new token
.
if
(
$token
->
timecreated
<
$timenow
)
{
//
Don't return
the private token if
the user didn't just log in and a new token wasn't created
.
if
(
empty
(
$SESSION
->
justloggedin
)
and
$token
->
timecreated
<
$timenow
)
{
$privatetoken
=
null
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment