A required parameter (username) was missing.

A required parameter (username) was missing.

by Alexander Quesada -
Number of replies: 3

Hello,


I am hoping someone can help me with Moodle for Mobile. I just downloaded it but cannot log in, no matter if I use a student login or my admin login, I get the notice "A required parameter (username) was missing". I did make sure to have Moodle Mobile enabled in the site administration settings.


I am using the newest version of the app on my iPhone and am using Moodle 3.0.1+ (Build: 20151231).


Any help is appreciated,

Thanks!

Attachment IMG_2777.jpg
Average of ratings: -
In reply to Alexander Quesada

Re: A required parameter (username) was missing.

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hello Alexander,

I've taken a look and the problem is caused by a redirect. The app checks if https is available in your site, and it is so the login request is done to https (please notice that the URL written when you type username and password has https in it). Your server is configured to redirect https requests to http, but the app cannot follow these kind of redirects so the login fails.

The only solution I can give you right now is to disable https in your site so the check detects it's not enabled and it performs the login using http. I don't know if you can disable it only in a certain script, if it's possible then disabling https in prestigemedical.org/online/login/token.php should be enough.

I'm sorry but right now that's the only solution.

Kind regards,

Dani

In reply to Dani Palou

Re: A required parameter (username) was missing.

by Alexander Quesada -

Thanks for the quick reply, Dani,


How would I go about disabling https? I attached a screenshot of the settings, the https one is not checked.


Thanks

Attachment HTTP.PNG
In reply to Alexander Quesada

Re: A required parameter (username) was missing.

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Alexander,

AFAIK this redirect https -> http is something that is configured in the server, not in Moodle.

Kind regards,

Dani