Set ViewBag.LoginProvider in error scenarios

Failure to do so will leave certain fields blank in the view.
This commit is contained in:
Dan Friedman 2015-03-31 09:08:50 -05:00 committed by Hao Kung
parent 6931ebe41d
commit d1c4e000ac
1 changed files with 2 additions and 1 deletions

View File

@ -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
}
}
}