Pārlūkot izejas kodu

Fixed registration not working correctly

pull/111/head
Teknikode pirms 3 gadiem
vecāks
revīzija
737a17c7d3
  1. 1
      Teknik/Areas/User/Controllers/UserController.cs
  2. 2
      Teknik/Areas/User/Views/User/Register.cshtml

1
Teknik/Areas/User/Controllers/UserController.cs

@ -114,6 +114,7 @@ namespace Teknik.Areas.Users.Controllers @@ -114,6 +114,7 @@ namespace Teknik.Areas.Users.Controllers
return View("/Areas/User/Views/User/ViewRegistration.cshtml", model);
}
[HttpOptions]
[HttpPost]
[AllowAnonymous]
public async Task<IActionResult> Register([Bind(Prefix = "Register")]RegisterViewModel model)

2
Teknik/Areas/User/Views/User/Register.cshtml

@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
<input type="password" class="form-control" id="registerConfirmPassword" value="" placeholder="********" name="Register.ConfirmPassword" data-val-required="The Confirm Password field is required." data-val="true"/>
</div>
<div class="form-group">
<label for="registerInviteCode">Invite Code@(Config.UserConfig.InviteCodeRequired ? " <span class=\"text-danger\">*</span>" : string.Empty)</label>
<label for="registerInviteCode">Invite Code@(Html.Raw(Config.UserConfig.InviteCodeRequired ? " <span class=\"text-danger\">*</span>" : string.Empty))</label>
<input type="text" class="form-control" id="registerInviteCode" value="@Model.InviteCode" placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" name="Register.InviteCode"/>
</div>
<div class="form-group">

Notiek ielāde…
Atcelt
Saglabāt