GetExternalAuthenticationTypes moved to SignInManager now
Fixing a sample break.
This commit is contained in:
parent
95c7a659c2
commit
b2a20bf4f5
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue