Skip to content

Commit

Permalink
Removed Facebook external login
Browse files Browse the repository at this point in the history
  • Loading branch information
rtennys committed Apr 17, 2017
1 parent 0537975 commit 476f8b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Momo.UI/App_Start/AuthConfig.cs
Expand Up @@ -16,7 +16,7 @@ public static void RegisterAuth()
// consumerKey: "",
// consumerSecret: "");

OAuthWebSecurity.RegisterFacebookClient(ConfigurationManager.AppSettings["FacebookAppId"], ConfigurationManager.AppSettings["FacebookAppSecret"]);
//OAuthWebSecurity.RegisterFacebookClient(ConfigurationManager.AppSettings["FacebookAppId"], ConfigurationManager.AppSettings["FacebookAppSecret"]);
OAuthWebSecurity.RegisterMicrosoftClient(ConfigurationManager.AppSettings["MicrosoftClientId"], ConfigurationManager.AppSettings["MicrosoftClientSecret"]);
//OAuthWebSecurity.RegisterGoogleClient();
//OAuthWebSecurity.RegisterClient(new OpenIdClient("myopenid", "https://myopenid.com/"), "MyOpenID", null);
Expand Down
3 changes: 2 additions & 1 deletion Momo.UI/Controllers/AccountController.cs
Expand Up @@ -252,7 +252,8 @@ public ActionResult RemoveExternalLogins()
var externalLogins = new List<ExternalLogin>();
foreach (var account in accounts)
{
var clientData = OAuthWebSecurity.GetOAuthClientData(account.Provider);
AuthenticationClientData clientData;
if (!OAuthWebSecurity.TryGetOAuthClientData(account.Provider, out clientData)) continue;

externalLogins.Add(new ExternalLogin
{
Expand Down
2 changes: 1 addition & 1 deletion deploy.bat
@@ -1,3 +1,3 @@
"C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe" deploy.proj /v:n
"C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" deploy.proj /v:n

@REM %WINDIR%\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe deploy.proj /v:n

0 comments on commit 476f8b1

Please sign in to comment.