Pārlūkot izejas kodu

Fixed registration not working correctly

master
Teknikode pirms 10 mēnešiem
vecāks
revīzija
737a17c7d3

+ 1
- 0
Teknik/Areas/User/Controllers/UserController.cs Parādīt failu

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

+ 1
- 1
Teknik/Areas/User/Views/User/Register.cshtml Parādīt failu

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