| 12345678910111213141516171819 |
- commit 13e4025dacf425ef2ebf0b1377b3b3858aad2c4b
- Author: Biarity <[email protected]>
- Date: Wed Dec 13 06:05:06 2017 +1000
- Using nameof() instead of hard-coded string. (#188)
- diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Areas/Identity/Controllers/AccountController.cs b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Areas/Identity/Controllers/AccountController.cs
- index ea6ec226be4..9b672454408 100644
- --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Areas/Identity/Controllers/AccountController.cs
- +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Areas/Identity/Controllers/AccountController.cs
- @@ -298,7 +298,7 @@ namespace Company.WebApplication1.Identity.Controllers
- ViewData["ReturnUrl"] = returnUrl;
- ViewData["LoginProvider"] = info.LoginProvider;
- var email = info.Principal.FindFirstValue(ClaimTypes.Email);
- - return View("ExternalLogin", new ExternalLoginViewModel { Email = email });
- + return View(nameof(ExternalLogin), new ExternalLoginViewModel { Email = email });
- }
- }
-
|