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
Pau Ferrer Ocaña 2021-03-15 18:06:10 +01:00
parent 86cf440dc1
commit 5053d579f3
1 changed files with 1 additions and 1 deletions

View File

@ -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.