Moodle Mobile Adding Site URL Automatically

Moodle Mobile Adding Site URL Automatically

by Zaid Khan -
Number of replies: 1

Hi, I'm new to moodle mobile. I'm trying to customize the default moodle mobile app for Android Platform. I've almost done everything which required. Now I want the users of my customized app to just login their user name and password. They should not see add site URL option. I've edited config.json file and added url.
Now my app users can see the site URL already typed in but they still have to press add button and then enter user name and password. In this way any user can change the URL as well and connect to some other website as well. Is there any possibility that I can skip adding the site URL button and show them just a login screen? so That my app users are restricted to just connect to my moodle website?

Thanks 

Average of ratings: -
In reply to Zaid Khan

Re: Moodle Mobile Adding Site URL Automatically

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

You should:

Index.html file

- Hide (via CSS) the login-details div

- Show the the login-credentials div

- Change this piece of code:

$('#add-site form').on('submit', MM.checkSite); to

$('#add-site form').on('submit', MM.addSite);