From 29b3eae5c38430f232f058777fc99b7619e77cce Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 15 May 2015 10:27:18 +0200 Subject: [PATCH] Aggiunta sito di default (con db base x auth, verificare se tenere...) --- CMS_SC/About.aspx | 34 ++++ CMS_SC/About.aspx.cs | 17 ++ CMS_SC/About.aspx.designer.cs | 17 ++ CMS_SC/Account/Login.aspx | 47 ++++++ CMS_SC/Account/Login.aspx.cs | 24 +++ CMS_SC/Account/Login.aspx.designer.cs | 35 ++++ CMS_SC/Account/Manage.aspx | 126 +++++++++++++++ CMS_SC/Account/Manage.aspx.cs | 95 +++++++++++ CMS_SC/Account/Manage.aspx.designer.cs | 66 ++++++++ CMS_SC/Account/OpenAuthProviders.ascx | 21 +++ CMS_SC/Account/OpenAuthProviders.ascx.cs | 43 +++++ .../OpenAuthProviders.ascx.designer.cs | 27 ++++ CMS_SC/Account/Register.aspx | 62 +++++++ CMS_SC/Account/Register.aspx.cs | 31 ++++ CMS_SC/Account/Register.aspx.designer.cs | 35 ++++ CMS_SC/Account/RegisterExternalLogin.aspx | 35 ++++ CMS_SC/Account/RegisterExternalLogin.aspx.cs | 151 ++++++++++++++++++ .../RegisterExternalLogin.aspx.designer.cs | 39 +++++ CMS_SC/Account/Web.config | 12 ++ 19 files changed, 917 insertions(+) create mode 100644 CMS_SC/About.aspx create mode 100644 CMS_SC/About.aspx.cs create mode 100644 CMS_SC/About.aspx.designer.cs create mode 100644 CMS_SC/Account/Login.aspx create mode 100644 CMS_SC/Account/Login.aspx.cs create mode 100644 CMS_SC/Account/Login.aspx.designer.cs create mode 100644 CMS_SC/Account/Manage.aspx create mode 100644 CMS_SC/Account/Manage.aspx.cs create mode 100644 CMS_SC/Account/Manage.aspx.designer.cs create mode 100644 CMS_SC/Account/OpenAuthProviders.ascx create mode 100644 CMS_SC/Account/OpenAuthProviders.ascx.cs create mode 100644 CMS_SC/Account/OpenAuthProviders.ascx.designer.cs create mode 100644 CMS_SC/Account/Register.aspx create mode 100644 CMS_SC/Account/Register.aspx.cs create mode 100644 CMS_SC/Account/Register.aspx.designer.cs create mode 100644 CMS_SC/Account/RegisterExternalLogin.aspx create mode 100644 CMS_SC/Account/RegisterExternalLogin.aspx.cs create mode 100644 CMS_SC/Account/RegisterExternalLogin.aspx.designer.cs create mode 100644 CMS_SC/Account/Web.config diff --git a/CMS_SC/About.aspx b/CMS_SC/About.aspx new file mode 100644 index 0000000..6ec6e84 --- /dev/null +++ b/CMS_SC/About.aspx @@ -0,0 +1,34 @@ +<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="CMS_SC.About" %> + + +
+

<%: Title %>.

+

Your app description page.

+
+ +
+

+ Use this area to provide additional information. +

+ +

+ Use this area to provide additional information. +

+ +

+ Use this area to provide additional information. +

+
+ + +
\ No newline at end of file diff --git a/CMS_SC/About.aspx.cs b/CMS_SC/About.aspx.cs new file mode 100644 index 0000000..85ea5d2 --- /dev/null +++ b/CMS_SC/About.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace CMS_SC +{ + public partial class About : Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/CMS_SC/About.aspx.designer.cs b/CMS_SC/About.aspx.designer.cs new file mode 100644 index 0000000..1e8ac9b --- /dev/null +++ b/CMS_SC/About.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CMS_SC +{ + + public partial class About + { + + } +} diff --git a/CMS_SC/Account/Login.aspx b/CMS_SC/Account/Login.aspx new file mode 100644 index 0000000..52b74df --- /dev/null +++ b/CMS_SC/Account/Login.aspx @@ -0,0 +1,47 @@ +<%@ Page Title="Log in" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="CMS_SC.Account.Login" %> +<%@ Register Src="~/Account/OpenAuthProviders.ascx" TagPrefix="uc" TagName="OpenAuthProviders" %> + + +
+

<%: Title %>.

+
+
+

Use a local account to log in.

+ + +

+ +

+
+ Log in Form +
    +
  1. + User name + + +
  2. +
  3. + Password + + +
  4. +
  5. + + Remember me? +
  6. +
+ +
+
+
+

+ Register + if you don't have an account. +

+
+ +
+

Use another service to log in.

+ +
+
diff --git a/CMS_SC/Account/Login.aspx.cs b/CMS_SC/Account/Login.aspx.cs new file mode 100644 index 0000000..9f86378 --- /dev/null +++ b/CMS_SC/Account/Login.aspx.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace CMS_SC.Account +{ + public partial class Login : Page + { + protected void Page_Load(object sender, EventArgs e) + { + RegisterHyperLink.NavigateUrl = "Register"; + OpenAuthLogin.ReturnUrl = Request.QueryString["ReturnUrl"]; + + var returnUrl = HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]); + if (!String.IsNullOrEmpty(returnUrl)) + { + RegisterHyperLink.NavigateUrl += "?ReturnUrl=" + returnUrl; + } + } + } +} \ No newline at end of file diff --git a/CMS_SC/Account/Login.aspx.designer.cs b/CMS_SC/Account/Login.aspx.designer.cs new file mode 100644 index 0000000..adc2171 --- /dev/null +++ b/CMS_SC/Account/Login.aspx.designer.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CMS_SC.Account +{ + + + public partial class Login + { + + /// + /// RegisterHyperLink control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink RegisterHyperLink; + + /// + /// OpenAuthLogin control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::CMS_SC.Account.OpenAuthProviders OpenAuthLogin; + } +} diff --git a/CMS_SC/Account/Manage.aspx b/CMS_SC/Account/Manage.aspx new file mode 100644 index 0000000..4ea5a6e --- /dev/null +++ b/CMS_SC/Account/Manage.aspx @@ -0,0 +1,126 @@ +<%@ Page Title="Manage Account" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="CMS_SC.Account.Manage" %> +<%@ Register Src="~/Account/OpenAuthProviders.ascx" TagPrefix="uc" TagName="OpenAuthProviders" %> + + +
+

<%: Title %>.

+
+ +
+ +

<%: SuccessMessage %>

+
+ +

You're logged in as <%: User.Identity.Name %>.

+ + +

+ You do not have a local password for this site. Add a local + password so you can log in without an external login. +

+
+ Set Password Form +
    +
  1. + Password + + + + + +
  2. +
  3. + Confirm password + + + +
  4. +
+ +
+
+ + +

Change password

+ + +

+ +

+
+ Change password details +
    +
  1. + Current password + + +
  2. +
  3. + New password + + +
  4. +
  5. + Confirm new password + + + +
  6. +
+ +
+
+
+
+
+ +
+ + + + +

Registered external logins

+ + + + + +
ServiceUser NameLast Used 
+
+ + + + <%#: Item.ProviderDisplayName %> + <%#: Item.ProviderUserName %> + <%#: ConvertToDisplayDateTime(Item.LastUsedUtc) %> + + + + + + +
+ +

Add an external login

+ +
+
diff --git a/CMS_SC/Account/Manage.aspx.cs b/CMS_SC/Account/Manage.aspx.cs new file mode 100644 index 0000000..f828f35 --- /dev/null +++ b/CMS_SC/Account/Manage.aspx.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +using Microsoft.AspNet.Membership.OpenAuth; + +namespace CMS_SC.Account +{ + public partial class Manage : System.Web.UI.Page + { + protected string SuccessMessage + { + get; + private set; + } + + protected bool CanRemoveExternalLogins + { + get; + private set; + } + + protected void Page_Load() + { + if (!IsPostBack) + { + // Determine the sections to render + var hasLocalPassword = OpenAuth.HasLocalPassword(User.Identity.Name); + setPassword.Visible = !hasLocalPassword; + changePassword.Visible = hasLocalPassword; + + CanRemoveExternalLogins = hasLocalPassword; + + // Render success message + var message = Request.QueryString["m"]; + if (message != null) + { + // Strip the query string from action + Form.Action = ResolveUrl("~/Account/Manage"); + + SuccessMessage = + message == "ChangePwdSuccess" ? "Your password has been changed." + : message == "SetPwdSuccess" ? "Your password has been set." + : message == "RemoveLoginSuccess" ? "The external login was removed." + : String.Empty; + successMessage.Visible = !String.IsNullOrEmpty(SuccessMessage); + } + } + + } + + protected void setPassword_Click(object sender, EventArgs e) + { + if (IsValid) + { + var result = OpenAuth.AddLocalPassword(User.Identity.Name, password.Text); + if (result.IsSuccessful) + { + Response.Redirect("~/Account/Manage?m=SetPwdSuccess"); + } + else + { + + ModelState.AddModelError("NewPassword", result.ErrorMessage); + + } + } + } + + + public IEnumerable GetExternalLogins() + { + var accounts = OpenAuth.GetAccountsForUser(User.Identity.Name); + CanRemoveExternalLogins = CanRemoveExternalLogins || accounts.Count() > 1; + return accounts; + } + + public void RemoveExternalLogin(string providerName, string providerUserId) + { + var m = OpenAuth.DeleteAccount(User.Identity.Name, providerName, providerUserId) + ? "?m=RemoveLoginSuccess" + : String.Empty; + Response.Redirect("~/Account/Manage" + m); + } + + + protected static string ConvertToDisplayDateTime(DateTime? utcDateTime) + { + // You can change this method to convert the UTC date time into the desired display + // offset and format. Here we're converting it to the server timezone and formatting + // as a short date and a long time string, using the current thread culture. + return utcDateTime.HasValue ? utcDateTime.Value.ToLocalTime().ToString("G") : "[never]"; + } + } +} \ No newline at end of file diff --git a/CMS_SC/Account/Manage.aspx.designer.cs b/CMS_SC/Account/Manage.aspx.designer.cs new file mode 100644 index 0000000..da32f1f --- /dev/null +++ b/CMS_SC/Account/Manage.aspx.designer.cs @@ -0,0 +1,66 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CMS_SC.Account +{ + + + public partial class Manage + { + + /// + /// successMessage control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.PlaceHolder successMessage; + + /// + /// setPassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.PlaceHolder setPassword; + + /// + /// password control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox password; + + + + /// + /// confirmPassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox confirmPassword; + + /// + /// changePassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.PlaceHolder changePassword; + + + } +} diff --git a/CMS_SC/Account/OpenAuthProviders.ascx b/CMS_SC/Account/OpenAuthProviders.ascx new file mode 100644 index 0000000..cfcd184 --- /dev/null +++ b/CMS_SC/Account/OpenAuthProviders.ascx @@ -0,0 +1,21 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OpenAuthProviders.ascx.cs" Inherits="CMS_SC.Account.OpenAuthProviders" %> + +
+ Log in using another service + + + + + + + +
+

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.

+
+
+
+
\ No newline at end of file diff --git a/CMS_SC/Account/OpenAuthProviders.ascx.cs b/CMS_SC/Account/OpenAuthProviders.ascx.cs new file mode 100644 index 0000000..b6c6488 --- /dev/null +++ b/CMS_SC/Account/OpenAuthProviders.ascx.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Web; +using Microsoft.AspNet.Membership.OpenAuth; + +namespace CMS_SC.Account +{ + public partial class OpenAuthProviders : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + if (IsPostBack) + { + var provider = Request.Form["provider"]; + if (provider == null) + { + return; + } + + var redirectUrl = "~/Account/RegisterExternalLogin"; + if (!String.IsNullOrEmpty(ReturnUrl)) + { + var resolvedReturnUrl = ResolveUrl(ReturnUrl); + redirectUrl += "?ReturnUrl=" + HttpUtility.UrlEncode(resolvedReturnUrl); + } + + OpenAuth.RequestAuthentication(provider, redirectUrl); + } + } + + + + public string ReturnUrl { get; set; } + + + public IEnumerable GetProviderNames() + { + return OpenAuth.AuthenticationClients.GetAll(); + } + + } +} \ No newline at end of file diff --git a/CMS_SC/Account/OpenAuthProviders.ascx.designer.cs b/CMS_SC/Account/OpenAuthProviders.ascx.designer.cs new file mode 100644 index 0000000..eb8bc0d --- /dev/null +++ b/CMS_SC/Account/OpenAuthProviders.ascx.designer.cs @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CMS_SC.Account +{ + + + public partial class OpenAuthProviders + { + + /// + /// providerDetails control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ListView providerDetails; + + } +} diff --git a/CMS_SC/Account/Register.aspx b/CMS_SC/Account/Register.aspx new file mode 100644 index 0000000..c30db5a --- /dev/null +++ b/CMS_SC/Account/Register.aspx @@ -0,0 +1,62 @@ +<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="CMS_SC.Account.Register" %> + + +
+

<%: Title %>.

+

Use the form below to create a new account.

+
+ + + + + + + + + +

+ Passwords are required to be a minimum of <%: Membership.MinRequiredPasswordLength %> characters in length. +

+ +

+ +

+ +
+ Registration Form +
    +
  1. + User name + + +
  2. +
  3. + Email address + + +
  4. +
  5. + Password + + +
  6. +
  7. + Confirm password + + + +
  8. +
+ +
+
+ +
+
+
+
\ No newline at end of file diff --git a/CMS_SC/Account/Register.aspx.cs b/CMS_SC/Account/Register.aspx.cs new file mode 100644 index 0000000..ab547bb --- /dev/null +++ b/CMS_SC/Account/Register.aspx.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using Microsoft.AspNet.Membership.OpenAuth; + +namespace CMS_SC.Account +{ + public partial class Register : Page + { + protected void Page_Load(object sender, EventArgs e) + { + RegisterUser.ContinueDestinationPageUrl = Request.QueryString["ReturnUrl"]; + } + + protected void RegisterUser_CreatedUser(object sender, EventArgs e) + { + FormsAuthentication.SetAuthCookie(RegisterUser.UserName, createPersistentCookie: false); + + string continueUrl = RegisterUser.ContinueDestinationPageUrl; + if (!OpenAuth.IsLocalUrl(continueUrl)) + { + continueUrl = "~/"; + } + Response.Redirect(continueUrl); + } + } +} \ No newline at end of file diff --git a/CMS_SC/Account/Register.aspx.designer.cs b/CMS_SC/Account/Register.aspx.designer.cs new file mode 100644 index 0000000..36b354e --- /dev/null +++ b/CMS_SC/Account/Register.aspx.designer.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CMS_SC.Account +{ + + + public partial class Register + { + + /// + /// RegisterUser control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CreateUserWizard RegisterUser; + + /// + /// RegisterUserWizardStep control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CreateUserWizardStep RegisterUserWizardStep; + } +} diff --git a/CMS_SC/Account/RegisterExternalLogin.aspx b/CMS_SC/Account/RegisterExternalLogin.aspx new file mode 100644 index 0000000..184687f --- /dev/null +++ b/CMS_SC/Account/RegisterExternalLogin.aspx @@ -0,0 +1,35 @@ +<%@ Page Language="C#" Title="Register an external login" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RegisterExternalLogin.aspx.cs" Inherits="CMS_SC.Account.RegisterExternalLogin" %> + +
+

Register with your <%: ProviderDisplayName %> account

+

<%: ProviderUserName %>.

+
+ + + + + + +
+ Association Form +

+ You've authenticated with <%: ProviderDisplayName %> as + <%: ProviderUserName %>. Please enter a user name below for the current site + and click the Log in button. +

+
    + +
+ + +
+
+
diff --git a/CMS_SC/Account/RegisterExternalLogin.aspx.cs b/CMS_SC/Account/RegisterExternalLogin.aspx.cs new file mode 100644 index 0000000..47ee559 --- /dev/null +++ b/CMS_SC/Account/RegisterExternalLogin.aspx.cs @@ -0,0 +1,151 @@ +using System; +using System.Web; +using System.Web.Security; +using DotNetOpenAuth.AspNet; +using Microsoft.AspNet.Membership.OpenAuth; + +namespace CMS_SC.Account +{ + public partial class RegisterExternalLogin : System.Web.UI.Page + { + protected string ProviderName + { + get { return (string)ViewState["ProviderName"] ?? String.Empty; } + private set { ViewState["ProviderName"] = value; } + } + + protected string ProviderDisplayName + { + get { return (string)ViewState["ProviderDisplayName"] ?? String.Empty; } + private set { ViewState["ProviderDisplayName"] = value; } + } + + protected string ProviderUserId + { + get { return (string)ViewState["ProviderUserId"] ?? String.Empty; } + private set { ViewState["ProviderUserId"] = value; } + } + + protected string ProviderUserName + { + get { return (string)ViewState["ProviderUserName"] ?? String.Empty; } + private set { ViewState["ProviderUserName"] = value; } + } + + protected void Page_Load() + { + if (!IsPostBack) + { + ProcessProviderResult(); + } + } + + protected void logIn_Click(object sender, EventArgs e) + { + CreateAndLoginUser(); + } + + protected void cancel_Click(object sender, EventArgs e) + { + RedirectToReturnUrl(); + } + + private void ProcessProviderResult() + { + // Process the result from an auth provider in the request + ProviderName = OpenAuth.GetProviderNameFromCurrentRequest(); + + if (String.IsNullOrEmpty(ProviderName)) + { + Response.Redirect(FormsAuthentication.LoginUrl); + } + + // Build the redirect url for OpenAuth verification + var redirectUrl = "~/Account/RegisterExternalLogin"; + var returnUrl = Request.QueryString["ReturnUrl"]; + if (!String.IsNullOrEmpty(returnUrl)) + { + redirectUrl += "?ReturnUrl=" + HttpUtility.UrlEncode(returnUrl); + } + + // Verify the OpenAuth payload + var authResult = OpenAuth.VerifyAuthentication(redirectUrl); + ProviderDisplayName = OpenAuth.GetProviderDisplayName(ProviderName); + if (!authResult.IsSuccessful) + { + Title = "External login failed"; + userNameForm.Visible = false; + + ModelState.AddModelError("Provider", String.Format("External login {0} failed.", ProviderDisplayName)); + + // To view this error, enable page tracing in web.config () and visit ~/Trace.axd + Trace.Warn("OpenAuth", String.Format("There was an error verifying authentication with {0})", ProviderDisplayName), authResult.Error); + return; + } + + // User has logged in with provider successfully + // Check if user is already registered locally + if (OpenAuth.Login(authResult.Provider, authResult.ProviderUserId, createPersistentCookie: false)) + { + RedirectToReturnUrl(); + } + + // Store the provider details in ViewState + ProviderName = authResult.Provider; + ProviderUserId = authResult.ProviderUserId; + ProviderUserName = authResult.UserName; + + // Strip the query string from action + Form.Action = ResolveUrl(redirectUrl); + + if (User.Identity.IsAuthenticated) + { + // User is already authenticated, add the external login and redirect to return url + OpenAuth.AddAccountToExistingUser(ProviderName, ProviderUserId, ProviderUserName, User.Identity.Name); + RedirectToReturnUrl(); + } + else + { + // User is new, ask for their desired membership name + userName.Text = authResult.UserName; + } + } + + private void CreateAndLoginUser() + { + if (!IsValid) + { + return; + } + + var createResult = OpenAuth.CreateUser(ProviderName, ProviderUserId, ProviderUserName, userName.Text); + if (!createResult.IsSuccessful) + { + + ModelState.AddModelError("UserName", createResult.ErrorMessage); + + } + else + { + // User created & associated OK + if (OpenAuth.Login(ProviderName, ProviderUserId, createPersistentCookie: false)) + { + RedirectToReturnUrl(); + } + } + } + + private void RedirectToReturnUrl() + { + var returnUrl = Request.QueryString["ReturnUrl"]; + if (!String.IsNullOrEmpty(returnUrl) && OpenAuth.IsLocalUrl(returnUrl)) + { + Response.Redirect(returnUrl); + } + else + { + Response.Redirect("~/"); + } + } + } +} \ No newline at end of file diff --git a/CMS_SC/Account/RegisterExternalLogin.aspx.designer.cs b/CMS_SC/Account/RegisterExternalLogin.aspx.designer.cs new file mode 100644 index 0000000..524008d --- /dev/null +++ b/CMS_SC/Account/RegisterExternalLogin.aspx.designer.cs @@ -0,0 +1,39 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CMS_SC.Account +{ + + + public partial class RegisterExternalLogin + { + + + + /// + /// userNameForm control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.PlaceHolder userNameForm; + + /// + /// userName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox userName; + + + } +} diff --git a/CMS_SC/Account/Web.config b/CMS_SC/Account/Web.config new file mode 100644 index 0000000..90fe314 --- /dev/null +++ b/CMS_SC/Account/Web.config @@ -0,0 +1,12 @@ + + + + + + + + + + + +