Merge pull request #2457 from dpalou/MOBILE-3476

MOBILE-3476 login: Make demo accounts case insensitive
main
Juan Leyva 2020-07-15 14:29:21 +02:00 committed by GitHub
commit 7811ab0bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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];
}