Encode the authType parameter.

This commit is contained in:
Nuvi
2016-05-06 10:42:23 +03:00
committed by Ionică Bizău
parent 3d3c7edc6d
commit 3c03fae147

View File

@@ -35,12 +35,12 @@ Facebook.requestCredential = function (options, credentialRequestCompleteCallbac
'&redirect_uri=' + OAuth._redirectUri('facebook', config) +
'&display=' + display + '&scope=' + scope +
'&state=' + OAuth._stateParam(loginStyle, credentialToken, options && options.redirectUrl);
// Handle authentication type (e.g. for force login you need authType: "reauthenticate")
if (options.authType) {
loginUrl = loginUrl + "&authType=" + options.authType;
loginUrl += "&authType=" + encodeURIComponent(options.authType);
}
OAuth.launchLogin({
loginService: "facebook",
loginStyle: loginStyle,