MOBILE-3635 login: Send extra parameter on token.php check
The extra parameter can be used by Moodle to avoid throwing an error in server logs because other parameters e.g. username are not supplied.main
parent
86cf440dc1
commit
5053d579f3
|
@ -309,7 +309,7 @@ export class CoreSitesProvider {
|
|||
siteUrl = CoreUrlUtils.removeUrlParams(siteUrl);
|
||||
|
||||
try {
|
||||
data = await Http.post(siteUrl + '/login/token.php', {}).pipe(timeout(CoreWS.getRequestTimeout()))
|
||||
data = await Http.post(siteUrl + '/login/token.php', { appsitecheck: 1 }).pipe(timeout(CoreWS.getRequestTimeout()))
|
||||
.toPromise();
|
||||
} catch (error) {
|
||||
// Default error messages are kinda bad, return our own message.
|
||||
|
|
Loading…
Reference in New Issue