summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Manage/SetPassword.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Views/Manage/SetPassword.cshtml')
-rw-r--r--Project-Unite/Views/Manage/SetPassword.cshtml39
1 files changed, 39 insertions, 0 deletions
diff --git a/Project-Unite/Views/Manage/SetPassword.cshtml b/Project-Unite/Views/Manage/SetPassword.cshtml
new file mode 100644
index 0000000..e8711e9
--- /dev/null
+++ b/Project-Unite/Views/Manage/SetPassword.cshtml
@@ -0,0 +1,39 @@
+@model Project_Unite.Models.SetPasswordViewModel
+@{
+ ViewBag.Title = "Create Password";
+}
+
+<h2>@ViewBag.Title.</h2>
+<p class="text-info">
+ You do not have a local username/password for this site. Add a local
+ account so you can log in without an external login.
+</p>
+
+@using (Html.BeginForm("SetPassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
+{
+ @Html.AntiForgeryToken()
+
+ <h4>Create Local Login</h4>
+ <hr />
+ @Html.ValidationSummary("", new { @class = "text-danger" })
+ <div class="form-group">
+ @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" })
+ <div class="col-md-10">
+ @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
+ </div>
+ </div>
+ <div class="form-group">
+ @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
+ <div class="col-md-10">
+ @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
+ </div>
+ </div>
+ <div class="form-group">
+ <div class="col-md-offset-2 col-md-10">
+ <input type="submit" value="Set password" class="btn btn-default" />
+ </div>
+ </div>
+}
+@section Scripts {
+ @Scripts.Render("~/bundles/jqueryval")
+} \ No newline at end of file