Skip to content

Commit d7bd78b

Browse files
committed
chore: update profile edit form to use Umbraco form helper
1 parent 04e370a commit d7bd78b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

SgfDevs/Views/Profile.cshtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
<p>Profile updated</p>
4848
}
4949

50-
<form asp-controller="Account" asp-action="ProfileUpdate" method="post" asp-antiforgery="true">
50+
@using (Html.BeginUmbracoForm("ProfileUpdate", "Account", FormMethod.Post))
51+
{
5152

5253
<div class="field">
5354
<label for="member.Email">Email</label>
@@ -245,7 +246,7 @@
245246
<footer>
246247
<button class="button tall wide" type="submit">Save</button>
247248
</footer>
248-
</form>
249+
}
249250

250251
<div class="mt_75"></div>
251252
</div>

0 commit comments

Comments
 (0)