From cdc61eb4ea5309769ad4db84d92594e4dc3dff67 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Mar 2017 16:45:17 -0400 Subject: Initial commit (azure deploy test) --- Project-Unite/Views/Account/ConfirmEmail.cshtml | 10 ++++ .../Views/Account/ExternalLoginConfirmation.cshtml | 36 +++++++++++++ .../Views/Account/ExternalLoginFailure.cshtml | 8 +++ Project-Unite/Views/Account/ForgotPassword.cshtml | 29 ++++++++++ .../Account/ForgotPasswordConfirmation.cshtml | 13 +++++ Project-Unite/Views/Account/Login.cshtml | 62 ++++++++++++++++++++++ Project-Unite/Views/Account/Register.cshtml | 47 ++++++++++++++++ Project-Unite/Views/Account/ResendConf.cshtml | 23 ++++++++ Project-Unite/Views/Account/ResetPassword.cshtml | 42 +++++++++++++++ .../Views/Account/ResetPasswordConfirmation.cshtml | 12 +++++ Project-Unite/Views/Account/SendCode.cshtml | 24 +++++++++ Project-Unite/Views/Account/VerifyCode.cshtml | 38 +++++++++++++ .../Account/_ExternalLoginsListPartial.cshtml | 28 ++++++++++ 13 files changed, 372 insertions(+) create mode 100644 Project-Unite/Views/Account/ConfirmEmail.cshtml create mode 100644 Project-Unite/Views/Account/ExternalLoginConfirmation.cshtml create mode 100644 Project-Unite/Views/Account/ExternalLoginFailure.cshtml create mode 100644 Project-Unite/Views/Account/ForgotPassword.cshtml create mode 100644 Project-Unite/Views/Account/ForgotPasswordConfirmation.cshtml create mode 100644 Project-Unite/Views/Account/Login.cshtml create mode 100644 Project-Unite/Views/Account/Register.cshtml create mode 100644 Project-Unite/Views/Account/ResendConf.cshtml create mode 100644 Project-Unite/Views/Account/ResetPassword.cshtml create mode 100644 Project-Unite/Views/Account/ResetPasswordConfirmation.cshtml create mode 100644 Project-Unite/Views/Account/SendCode.cshtml create mode 100644 Project-Unite/Views/Account/VerifyCode.cshtml create mode 100644 Project-Unite/Views/Account/_ExternalLoginsListPartial.cshtml (limited to 'Project-Unite/Views/Account') diff --git a/Project-Unite/Views/Account/ConfirmEmail.cshtml b/Project-Unite/Views/Account/ConfirmEmail.cshtml new file mode 100644 index 0000000..ed02ad8 --- /dev/null +++ b/Project-Unite/Views/Account/ConfirmEmail.cshtml @@ -0,0 +1,10 @@ +@{ + ViewBag.Title = "Confirm Email"; +} + +

@ViewBag.Title.

+
+

+ Thank you for confirming your email. Please @Html.ActionLink("Click here to Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" }) +

+
diff --git a/Project-Unite/Views/Account/ExternalLoginConfirmation.cshtml b/Project-Unite/Views/Account/ExternalLoginConfirmation.cshtml new file mode 100644 index 0000000..bcc491c --- /dev/null +++ b/Project-Unite/Views/Account/ExternalLoginConfirmation.cshtml @@ -0,0 +1,36 @@ +@model Project_Unite.Models.ExternalLoginConfirmationViewModel +@{ + ViewBag.Title = "Register"; +} +

@ViewBag.Title.

+

Associate your @ViewBag.LoginProvider account.

+ +@using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() + +

Association Form

+
+ @Html.ValidationSummary(true, "", new { @class = "text-danger" }) +

+ You've successfully authenticated with @ViewBag.LoginProvider. + Please enter a user name for this site below and click the Register button to finish + logging in. +

+
+ @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) +
+ @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) + @Html.ValidationMessageFor(m => m.Email, "", new { @class = "text-danger" }) +
+
+
+
+ +
+
+} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/Project-Unite/Views/Account/ExternalLoginFailure.cshtml b/Project-Unite/Views/Account/ExternalLoginFailure.cshtml new file mode 100644 index 0000000..3be4ab3 --- /dev/null +++ b/Project-Unite/Views/Account/ExternalLoginFailure.cshtml @@ -0,0 +1,8 @@ +@{ + ViewBag.Title = "Login Failure"; +} + +
+

@ViewBag.Title.

+

Unsuccessful login with service.

+
diff --git a/Project-Unite/Views/Account/ForgotPassword.cshtml b/Project-Unite/Views/Account/ForgotPassword.cshtml new file mode 100644 index 0000000..1bb2611 --- /dev/null +++ b/Project-Unite/Views/Account/ForgotPassword.cshtml @@ -0,0 +1,29 @@ +@model Project_Unite.Models.ForgotPasswordViewModel +@{ + ViewBag.Title = "Forgot your password?"; +} + +

@ViewBag.Title.

+ +@using (Html.BeginForm("ForgotPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() +

Enter your email.

+
+ @Html.ValidationSummary("", new { @class = "text-danger" }) +
+ @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) +
+ @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) +
+
+
+
+ +
+
+} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/Project-Unite/Views/Account/ForgotPasswordConfirmation.cshtml b/Project-Unite/Views/Account/ForgotPasswordConfirmation.cshtml new file mode 100644 index 0000000..dd7af8c --- /dev/null +++ b/Project-Unite/Views/Account/ForgotPasswordConfirmation.cshtml @@ -0,0 +1,13 @@ +@{ + ViewBag.Title = "Forgot Password Confirmation"; +} + +
+

@ViewBag.Title.

+
+
+

+ Please check your email to reset your password. +

+
+ diff --git a/Project-Unite/Views/Account/Login.cshtml b/Project-Unite/Views/Account/Login.cshtml new file mode 100644 index 0000000..1244c62 --- /dev/null +++ b/Project-Unite/Views/Account/Login.cshtml @@ -0,0 +1,62 @@ +@using Project_Unite.Models +@model LoginViewModel +@{ + ViewBag.Title = "Log in"; +} + +

@ViewBag.Title.

+
+
+
+ @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) + { + @Html.AntiForgeryToken() +

Use a local account to log in.

+
+ @Html.ValidationSummary(true, "", new { @class = "text-danger" }) +
+ @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) +
+ @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) + @Html.ValidationMessageFor(m => m.Email, "", new { @class = "text-danger" }) +
+
+
+ @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" }) +
+ @Html.PasswordFor(m => m.Password, new { @class = "form-control" }) + @Html.ValidationMessageFor(m => m.Password, "", new { @class = "text-danger" }) +
+
+
+
+
+ @Html.CheckBoxFor(m => m.RememberMe) + @Html.LabelFor(m => m.RememberMe) +
+
+
+
+
+ +
+
+

+ @Html.ActionLink("Register as a new user", "Register") +

+

+ @Html.ActionLink("Forgot your password?", "ForgotPassword") +

+ } +
+
+
+
+ @Html.Partial("_ExternalLoginsListPartial", new ExternalLoginListViewModel { ReturnUrl = ViewBag.ReturnUrl }) +
+
+
+ +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} \ No newline at end of file diff --git a/Project-Unite/Views/Account/Register.cshtml b/Project-Unite/Views/Account/Register.cshtml new file mode 100644 index 0000000..a1d1225 --- /dev/null +++ b/Project-Unite/Views/Account/Register.cshtml @@ -0,0 +1,47 @@ +@model Project_Unite.Models.RegisterViewModel +@{ + ViewBag.Title = "Register"; +} + +

@ViewBag.Title.

+ +@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() +

Create a new account.

+
+ @Html.ValidationSummary("", new { @class = "text-danger" }) +
+ @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) +
+ @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) +
+
+
+ @Html.LabelFor(m => m.Username, new { @class = "col-md-2 control-label" }) +
+ @Html.TextBoxFor(m => m.Username, new { @class = "form-control" }) +
+
+
+ @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" }) +
+ @Html.PasswordFor(m => m.Password, new { @class = "form-control" }) +
+
+
+ @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) +
+ @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) +
+
+
+
+ +
+
+} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/Project-Unite/Views/Account/ResendConf.cshtml b/Project-Unite/Views/Account/ResendConf.cshtml new file mode 100644 index 0000000..beb8c6f --- /dev/null +++ b/Project-Unite/Views/Account/ResendConf.cshtml @@ -0,0 +1,23 @@ + +@{ + ViewBag.Title = "Confirmation email resent."; +} +@if (ViewBag.IsConfirmed == true) +{ +

Email already confirmed!

+ +

We've already confirmed that your email is valid! There's no need to send a confirmation link! But, if that warning is still nagging you, there might be a bug on our end - contact @ACL.UserNameFromEmailRaw("michaelshiftos@gmail.com") ASAP!

+} +else +{ +

Confirmation email resent.

+ +

We have just sent an email to @User.Identity.Name

+ +

We value your security.

+ +

Security within the multi-user domain is paramount. You must protect yourself the best you can, and so must we. Since you are in the process of confirming your email address, we can soon ensure you are secure within the multi-user domain by allowing us to contact you when suspicious activity occurs on your account or when you need to reset your password.

+ +

Still not there? @Html.ActionLink("Resend it again, please.", "ResendConf")

+ +} \ No newline at end of file diff --git a/Project-Unite/Views/Account/ResetPassword.cshtml b/Project-Unite/Views/Account/ResetPassword.cshtml new file mode 100644 index 0000000..de239b8 --- /dev/null +++ b/Project-Unite/Views/Account/ResetPassword.cshtml @@ -0,0 +1,42 @@ +@model Project_Unite.Models.ResetPasswordViewModel +@{ + ViewBag.Title = "Reset password"; +} + +

@ViewBag.Title.

+ +@using (Html.BeginForm("ResetPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() +

Reset your password.

+
+ @Html.ValidationSummary("", new { @class = "text-danger" }) + @Html.HiddenFor(model => model.Code) +
+ @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) +
+ @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) +
+
+
+ @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" }) +
+ @Html.PasswordFor(m => m.Password, new { @class = "form-control" }) +
+
+
+ @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) +
+ @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) +
+
+
+
+ +
+
+} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/Project-Unite/Views/Account/ResetPasswordConfirmation.cshtml b/Project-Unite/Views/Account/ResetPasswordConfirmation.cshtml new file mode 100644 index 0000000..3804516 --- /dev/null +++ b/Project-Unite/Views/Account/ResetPasswordConfirmation.cshtml @@ -0,0 +1,12 @@ +@{ + ViewBag.Title = "Reset password confirmation"; +} + +
+

@ViewBag.Title.

+
+
+

+ Your password has been reset. Please @Html.ActionLink("click here to log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" }) +

+
diff --git a/Project-Unite/Views/Account/SendCode.cshtml b/Project-Unite/Views/Account/SendCode.cshtml new file mode 100644 index 0000000..a11a3a6 --- /dev/null +++ b/Project-Unite/Views/Account/SendCode.cshtml @@ -0,0 +1,24 @@ +@model Project_Unite.Models.SendCodeViewModel +@{ + ViewBag.Title = "Send"; +} + +

@ViewBag.Title.

+ +@using (Html.BeginForm("SendCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { + @Html.AntiForgeryToken() + @Html.Hidden("rememberMe", @Model.RememberMe) +

Send verification code

+
+
+
+ Select Two-Factor Authentication Provider: + @Html.DropDownListFor(model => model.SelectedProvider, Model.Providers) + +
+
+} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/Project-Unite/Views/Account/VerifyCode.cshtml b/Project-Unite/Views/Account/VerifyCode.cshtml new file mode 100644 index 0000000..0f47757 --- /dev/null +++ b/Project-Unite/Views/Account/VerifyCode.cshtml @@ -0,0 +1,38 @@ +@model Project_Unite.Models.VerifyCodeViewModel +@{ + ViewBag.Title = "Verify"; +} + +

@ViewBag.Title.

+ +@using (Html.BeginForm("VerifyCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { + @Html.AntiForgeryToken() + @Html.Hidden("provider", @Model.Provider) + @Html.Hidden("rememberMe", @Model.RememberMe) +

Enter verification code

+
+ @Html.ValidationSummary("", new { @class = "text-danger" }) +
+ @Html.LabelFor(m => m.Code, new { @class = "col-md-2 control-label" }) +
+ @Html.TextBoxFor(m => m.Code, new { @class = "form-control" }) +
+
+
+
+
+ @Html.CheckBoxFor(m => m.RememberBrowser) + @Html.LabelFor(m => m.RememberBrowser) +
+
+
+
+
+ +
+
+} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/Project-Unite/Views/Account/_ExternalLoginsListPartial.cshtml b/Project-Unite/Views/Account/_ExternalLoginsListPartial.cshtml new file mode 100644 index 0000000..8b85588 --- /dev/null +++ b/Project-Unite/Views/Account/_ExternalLoginsListPartial.cshtml @@ -0,0 +1,28 @@ +@model Project_Unite.Models.ExternalLoginListViewModel +@using Microsoft.Owin.Security + +

Use another service to log in.

+
+@{ + var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); + if (loginProviders.Count() == 0) { +
+

+ There are no external authentication services configured. See this article + for details on setting up this ASP.NET application to support logging in via external services. +

+
+ } + else { + using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl })) { + @Html.AntiForgeryToken() +
+

+ @foreach (AuthenticationDescription p in loginProviders) { + + } +

+
+ } + } +} -- cgit v1.2.3