Merge pull request #2535 from crazyserver/MOBILE-3554

MOBILE-3554 login: Add forceLoginLogo setting to avoid showing web logo
main
Juan Leyva 2020-09-22 13:24:44 +02:00 committed by GitHub
commit ebaa8be899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -98,6 +98,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

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