You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/UserCenter/Views/Account/SetEmail.cshtml

24 lines
797 B

@model ChangeEmailModel
@{
Layout = "/Views/Shared/_Layout.cshtml";
DisableBackUrl = true;
HtmlTitle = ViewContext.ViewData.ModelMetadata.ModelType.GetDisplayName();
var url = Url.Action("SendCodeToEmail");
}
@Html.EditorForModel()
@section scripts{
<script>
$('#CodeCaptcha').attr('data-url', '@url');
function valid() {
$('#Email').parents('form').validate().element('#Email');
if ($('#Email').hasClass('input-validation-error')) {
return false;
}
return true;
}
function getUrl() {
return $('#CodeCaptcha').attr('data-url') + '?Email=' + $('#Email').val() + '&CodeCaptcha=' + $('#CodeCaptcha').val();
}
</script>
@await Html.PartialAsync("_Script")
}