Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions www/core/components/login/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ angular.module('mm.core.login', [])
})

.run(function($log, $state, $mmUtil, $translate, $mmSitesManager, $rootScope, $mmSite, $mmURLDelegate, $ionicHistory,
$mmEvents, $mmLoginHelper, mmCoreEventSessionExpired, $mmApp) {
$mmEvents, $mmLoginHelper, mmCoreEventSessionExpired, $mmApp, mmCoreConfigConstants) {

$log = $log.getInstance('mmLogin');

Expand Down Expand Up @@ -178,7 +178,7 @@ angular.module('mm.core.login', [])

// Function to handle URL received by Custom URL Scheme. If it's a SSO login, perform authentication.
function appLaunchedByURL(url) {
var ssoScheme = 'moodlemobile://token=';
var ssoScheme = mmCoreConfigConstants.customurlscheme + '://token=';
if (url.indexOf(ssoScheme) == -1) {
return false;
}
Expand Down