MOBILE-3476 login: Make demo accounts case insensitive

main
Dani Palou 2020-07-13 09:51:29 +02:00
parent 743aa6c7db
commit d1a9d7472b
1 changed files with 2 additions and 0 deletions

View File

@ -431,6 +431,8 @@ export class CoreSitesProvider {
*/
getDemoSiteData(name: string): any {
const demoSites = CoreConfigConstants.demo_sites;
name = name.toLowerCase();
if (typeof demoSites != 'undefined' && typeof demoSites[name] != 'undefined') {
return demoSites[name];
}