Closed natelaff closed 7 years ago
In VerifyCode.cshtml you define the form as
<form asp-controller="Account" asp-action="VerifyCode" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" role="form">
The ReturnUrl is not in ViewData, you pass it in VerifyCodeViewModel. So the form should use Model.ReturnUrl.
<form asp-controller="Account" asp-action="VerifyCode" asp-route-returnurl="@Model.ReturnUrl" method="post" role="form">
In VerifyCode.cshtml you define the form as
<form asp-controller="Account" asp-action="VerifyCode" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" role="form">
The ReturnUrl is not in ViewData, you pass it in VerifyCodeViewModel. So the form should use Model.ReturnUrl.
<form asp-controller="Account" asp-action="VerifyCode" asp-route-returnurl="@Model.ReturnUrl" method="post" role="form">