MOBILE-3554 login: Add forceLoginLogo setting to avoid showing web logo

main
Pau Ferrer Ocaña 2020-09-14 14:06:50 +02:00
parent 37b0447cfe
commit 0e5c448a82
3 changed files with 3 additions and 2 deletions

View File

@ -97,6 +97,7 @@
"enableanalytics": false,
"enableonboarding": true,
"forceColorScheme": "",
"forceLoginLogo": false,
"ioswebviewscheme": "moodleappfs",
"appstores": {
"android": "com.moodle.moodlemobile",

View File

@ -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');

View File

@ -412,7 +412,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;
}
/**