diff --git a/src/config.json b/src/config.json index b88e12177..4749c6bb2 100644 --- a/src/config.json +++ b/src/config.json @@ -98,6 +98,7 @@ "enableanalytics": false, "enableonboarding": true, "forceColorScheme": "", + "forceLoginLogo": false, "ioswebviewscheme": "moodleappfs", "appstores": { "android": "com.moodle.moodlemobile", diff --git a/src/core/login/pages/credentials/credentials.ts b/src/core/login/pages/credentials/credentials.ts index 57541ce34..c40ad2703 100644 --- a/src/core/login/pages/credentials/credentials.ts +++ b/src/core/login/pages/credentials/credentials.ts @@ -70,7 +70,7 @@ export class CoreLoginCredentialsPage { this.siteUrl = navParams.get('siteUrl'); this.siteName = navParams.get('siteName') || null; - this.logoUrl = navParams.get('logoUrl') || null; + this.logoUrl = !CoreConfigConstants.forceLoginLogo && navParams.get('logoUrl') || null; this.siteConfig = navParams.get('siteConfig'); this.urlToOpen = navParams.get('urlToOpen'); diff --git a/src/core/login/providers/helper.ts b/src/core/login/providers/helper.ts index 1f11d9265..cf9546050 100644 --- a/src/core/login/providers/helper.ts +++ b/src/core/login/providers/helper.ts @@ -411,7 +411,7 @@ export class CoreLoginHelperProvider { * @return Logo URL. */ getLogoUrl(config: any): string { - return config ? (config.logourl || config.compactlogourl) : null; + return !CoreConfigConstants.forceLoginLogo && config ? (config.logourl || config.compactlogourl) : null; } /**