GetExternalAuthenticationTypes moved to SignInManager now

Fixing a sample break.
This commit is contained in:
Praburaj 2014-10-08 14:26:03 -07:00
parent 95c7a659c2
commit b2a20bf4f5
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,6 @@ using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Rendering;
using MusicStore.Models;
using Microsoft.AspNet.Http;
using System.Security.Claims;
namespace MusicStore.Controllers

View File

@ -1,11 +1,12 @@
@model MusicStore.Models.ExternalLoginListViewModel
@using Microsoft.AspNet.Http;
@using MusicStore.Models;
@using Microsoft.AspNet.Http.Security;
@using Microsoft.AspNet.Identity;
@model ExternalLoginListViewModel
@inject SignInManager<ApplicationUser> SignInManager
<h4>Use another service to log in.</h4>
<hr />
@{
var loginProviders = Context.GetExternalAuthenticationTypes();
var loginProviders = SignInManager.GetExternalAuthenticationTypes();
if (loginProviders.Count() == 0)
{
<div>