From d1c4e000acaefa45f2559c3e6df27e082facc035 Mon Sep 17 00:00:00 2001 From: Dan Friedman Date: Tue, 31 Mar 2015 09:08:50 -0500 Subject: [PATCH] Set ViewBag.LoginProvider in error scenarios Failure to do so will leave certain fields blank in the view. --- samples/IdentitySample.Mvc/Controllers/AccountController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/IdentitySample.Mvc/Controllers/AccountController.cs b/samples/IdentitySample.Mvc/Controllers/AccountController.cs index b674fe6cd7..23da884fae 100644 --- a/samples/IdentitySample.Mvc/Controllers/AccountController.cs +++ b/samples/IdentitySample.Mvc/Controllers/AccountController.cs @@ -199,6 +199,7 @@ namespace IdentitySample.Controllers } } AddErrors(result); + ViewBag.LoginProvider = info.Login.LoginProvider; } ViewBag.ReturnUrl = returnUrl; @@ -442,4 +443,4 @@ namespace IdentitySample.Controllers #endregion } -} \ No newline at end of file +}