diff --git a/Project-Unite/Project-Unite.csproj b/Project-Unite/Project-Unite.csproj index b45abe5..a8676af 100644 --- a/Project-Unite/Project-Unite.csproj +++ b/Project-Unite/Project-Unite.csproj @@ -510,6 +510,7 @@ + diff --git a/Project-Unite/Views/Admin/CreateUser.cshtml b/Project-Unite/Views/Admin/CreateUser.cshtml new file mode 100644 index 0000000..0a2fbb8 --- /dev/null +++ b/Project-Unite/Views/Admin/CreateUser.cshtml @@ -0,0 +1,25 @@ +@model Project_Unite.Models.CreateUserModel +@{ + ViewBag.Title = "Create user"; + ViewBag.Admin = true; +} + +

Create a user

+ +

If you are migrating users from a database, all you need is their email and username. We'll handle the rest - like making them reset their password and confirm their email.

+ +@using (Html.BeginForm()) +{ + @Html.AntiForgeryToken() + + + + + + + + + + +
User email: @Html.TextBoxFor(Model=>Model.Email, new{@class="form-control", type="email"})
User display name: @Html.TextBoxFor(Model => Model.Username, new { @class = "form-control" })
+} diff --git a/Project-Unite/Views/Admin/Users.cshtml b/Project-Unite/Views/Admin/Users.cshtml index a9830c5..117ed38 100644 --- a/Project-Unite/Views/Admin/Users.cshtml +++ b/Project-Unite/Views/Admin/Users.cshtml @@ -8,6 +8,10 @@

Below is a list of all users in the database.

+ +
User