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;
|
||||||
using Microsoft.AspNet.Mvc.Rendering;
|
using Microsoft.AspNet.Mvc.Rendering;
|
||||||
using MusicStore.Models;
|
using MusicStore.Models;
|
||||||
using Microsoft.AspNet.Http;
|
|
||||||
using System.Security.Claims;
|
using System.Security.Claims;
|
||||||
|
|
||||||
namespace MusicStore.Controllers
|
namespace MusicStore.Controllers
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
@model MusicStore.Models.ExternalLoginListViewModel
|
@using MusicStore.Models;
|
||||||
@using Microsoft.AspNet.Http;
|
|
||||||
@using Microsoft.AspNet.Http.Security;
|
@using Microsoft.AspNet.Http.Security;
|
||||||
|
@using Microsoft.AspNet.Identity;
|
||||||
|
@model ExternalLoginListViewModel
|
||||||
|
@inject SignInManager<ApplicationUser> SignInManager
|
||||||
<h4>Use another service to log in.</h4>
|
<h4>Use another service to log in.</h4>
|
||||||
<hr />
|
<hr />
|
||||||
@{
|
@{
|
||||||
var loginProviders = Context.GetExternalAuthenticationTypes();
|
var loginProviders = SignInManager.GetExternalAuthenticationTypes();
|
||||||
if (loginProviders.Count() == 0)
|
if (loginProviders.Count() == 0)
|
||||||
{
|
{
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue