From d1a9d7472b667725ce4c6ef2e811fee85b6aec63 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 13 Jul 2020 09:51:29 +0200 Subject: [PATCH] MOBILE-3476 login: Make demo accounts case insensitive --- src/providers/sites.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/providers/sites.ts b/src/providers/sites.ts index 5dd85965b..b25283c92 100644 --- a/src/providers/sites.ts +++ b/src/providers/sites.ts @@ -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]; }