diff --git a/FWA_MAIN/FWA_MAIN.csproj b/FWA_MAIN/FWA_MAIN.csproj index 707e7a3..fd16b80 100644 --- a/FWA_MAIN/FWA_MAIN.csproj +++ b/FWA_MAIN/FWA_MAIN.csproj @@ -121,6 +121,20 @@ Global.asax + + ASPXCodeBehind + login.aspx + + + login.aspx + + + ASPXCodeBehind + loginv2.aspx + + + loginv2.aspx + ASPXCodeBehind main.master @@ -261,6 +275,8 @@ + + diff --git a/FWA_MAIN/Web.config b/FWA_MAIN/Web.config index b80eae9..8a94721 100644 --- a/FWA_MAIN/Web.config +++ b/FWA_MAIN/Web.config @@ -8,11 +8,19 @@ - + + + + + + + + + diff --git a/FWA_MAIN/bin/FWA_MAIN.dll b/FWA_MAIN/bin/FWA_MAIN.dll index c577a94..6ac5a47 100644 Binary files a/FWA_MAIN/bin/FWA_MAIN.dll and b/FWA_MAIN/bin/FWA_MAIN.dll differ diff --git a/FWA_MAIN/bin/FWA_MAIN.dll.config b/FWA_MAIN/bin/FWA_MAIN.dll.config index 72b2140..8a94721 100644 --- a/FWA_MAIN/bin/FWA_MAIN.dll.config +++ b/FWA_MAIN/bin/FWA_MAIN.dll.config @@ -8,13 +8,21 @@ - + + + + + + + + + - + diff --git a/FWA_MAIN/bin/FWA_MAIN.pdb b/FWA_MAIN/bin/FWA_MAIN.pdb index 8d1482c..aabdca7 100644 Binary files a/FWA_MAIN/bin/FWA_MAIN.pdb and b/FWA_MAIN/bin/FWA_MAIN.pdb differ diff --git a/FWA_MAIN/login.aspx b/FWA_MAIN/login.aspx new file mode 100644 index 0000000..0060eec --- /dev/null +++ b/FWA_MAIN/login.aspx @@ -0,0 +1,24 @@ +<%@ Page Language="C#" CodeBehind="login.aspx.cs" Inherits="FWA_MAIN.login" %> + + + + + + + + Login + + +
+
+ +
+ +
+ +
+
+ + \ No newline at end of file diff --git a/FWA_MAIN/login.aspx.cs b/FWA_MAIN/login.aspx.cs new file mode 100644 index 0000000..a9ae541 --- /dev/null +++ b/FWA_MAIN/login.aspx.cs @@ -0,0 +1,30 @@ +using System; +using System.Web.Security; +using System.Web.UI; + +namespace FWA_MAIN +{ + public partial class login : Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void LoginButton_Click(object sender, EventArgs e) + { + string username = Username.Text; + string password = Password.Text; + + // Example authentication; replace with actual logic + if (username == "admin" && password == "someonerandom") + { + FormsAuthentication.RedirectFromLoginPage(username, false); + } + else + { + // Show an error message or handle invalid login + } + } + } +} \ No newline at end of file diff --git a/FWA_MAIN/login.aspx.designer.cs b/FWA_MAIN/login.aspx.designer.cs new file mode 100644 index 0000000..b6cbe8e --- /dev/null +++ b/FWA_MAIN/login.aspx.designer.cs @@ -0,0 +1,53 @@ +//------------------------------------------------------------------------------ +// +// 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 FWA_MAIN +{ + + + public partial class login + { + + /// + /// Login control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm Login; + + /// + /// 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; + + /// + /// 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; + + /// + /// LoginButton control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button LoginButton; + } +} diff --git a/FWA_MAIN/loginv2.aspx b/FWA_MAIN/loginv2.aspx new file mode 100644 index 0000000..be76677 --- /dev/null +++ b/FWA_MAIN/loginv2.aspx @@ -0,0 +1,13 @@ +<%@ Page Title="login" Language="C#" MasterPageFile="main.master" CodeBehind="loginv2.aspx.cs" Inherits="FWA_MAIN.loginv2" %> + + + +
+ + + + + +
+ +
\ No newline at end of file diff --git a/FWA_MAIN/loginv2.aspx.cs b/FWA_MAIN/loginv2.aspx.cs new file mode 100644 index 0000000..2a862c6 --- /dev/null +++ b/FWA_MAIN/loginv2.aspx.cs @@ -0,0 +1,29 @@ +using System; +using System.Web.Security; +using System.Web.UI; + +namespace FWA_MAIN +{ + public partial class loginv2 : Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void LoginButton_Click(object sender, EventArgs e) + { + string username = Username.Text; + string password = Password.Text; + + // Example authentication; replace with actual logic + if (username == "admin" && password == "password") + { + FormsAuthentication.RedirectFromLoginPage(username, false); + } + else + { + // Show an error message or handle invalid login + } } + } +} \ No newline at end of file diff --git a/FWA_MAIN/loginv2.aspx.designer.cs b/FWA_MAIN/loginv2.aspx.designer.cs new file mode 100644 index 0000000..4efd050 --- /dev/null +++ b/FWA_MAIN/loginv2.aspx.designer.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// 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 FWA_MAIN +{ + + + public partial class loginv2 + { + + /// + /// 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; + + /// + /// 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; + + /// + /// LoginButton control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button LoginButton; + + /// + /// Master property. + /// + /// + /// Auto-generated property. + /// + public new FWA_MAIN.main Master + { + get + { + return ((FWA_MAIN.main)(base.Master)); + } + } + } +} diff --git a/FWA_MAIN/obj/Debug/FWA_MAIN.csproj.CoreCompileInputs.cache b/FWA_MAIN/obj/Debug/FWA_MAIN.csproj.CoreCompileInputs.cache index 4555ae6..bea38b7 100644 --- a/FWA_MAIN/obj/Debug/FWA_MAIN.csproj.CoreCompileInputs.cache +++ b/FWA_MAIN/obj/Debug/FWA_MAIN.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -35e3f318d70032ecddcf1f126a0f5fadbfc716462983ce624410e76af3e3df7d +50074679a1a1cb6525af5fbfda8b79afcdf3526bcbe1cf9d0fe607e81ea9cb81 diff --git a/FWA_MAIN/obj/Debug/FWA_MAIN.dll b/FWA_MAIN/obj/Debug/FWA_MAIN.dll index c577a94..6ac5a47 100644 Binary files a/FWA_MAIN/obj/Debug/FWA_MAIN.dll and b/FWA_MAIN/obj/Debug/FWA_MAIN.dll differ diff --git a/FWA_MAIN/obj/Debug/FWA_MAIN.pdb b/FWA_MAIN/obj/Debug/FWA_MAIN.pdb index 8d1482c..aabdca7 100644 Binary files a/FWA_MAIN/obj/Debug/FWA_MAIN.pdb and b/FWA_MAIN/obj/Debug/FWA_MAIN.pdb differ diff --git a/FWA_MAIN/obj/Debug/Package/PackageTmp/Web.config b/FWA_MAIN/obj/Debug/Package/PackageTmp/Web.config index 7f7b89f..627eaaf 100644 --- a/FWA_MAIN/obj/Debug/Package/PackageTmp/Web.config +++ b/FWA_MAIN/obj/Debug/Package/PackageTmp/Web.config @@ -8,13 +8,22 @@ - + + + + + + + + + + - + diff --git a/FWA_MAIN/obj/Debug/Package/PackageTmp/bin/FWA_MAIN.dll b/FWA_MAIN/obj/Debug/Package/PackageTmp/bin/FWA_MAIN.dll index c577a94..6ac5a47 100644 Binary files a/FWA_MAIN/obj/Debug/Package/PackageTmp/bin/FWA_MAIN.dll and b/FWA_MAIN/obj/Debug/Package/PackageTmp/bin/FWA_MAIN.dll differ diff --git a/FWA_MAIN/obj/Debug/Package/PackageTmp/bin/FWA_MAIN.pdb b/FWA_MAIN/obj/Debug/Package/PackageTmp/bin/FWA_MAIN.pdb index 8d1482c..aabdca7 100644 Binary files a/FWA_MAIN/obj/Debug/Package/PackageTmp/bin/FWA_MAIN.pdb and b/FWA_MAIN/obj/Debug/Package/PackageTmp/bin/FWA_MAIN.pdb differ diff --git a/FWA_MAIN/obj/Debug/TransformWebConfig/original/Web.config b/FWA_MAIN/obj/Debug/TransformWebConfig/original/Web.config index 72b2140..8a94721 100644 --- a/FWA_MAIN/obj/Debug/TransformWebConfig/original/Web.config +++ b/FWA_MAIN/obj/Debug/TransformWebConfig/original/Web.config @@ -8,13 +8,21 @@ - + + + + + + + + + - + diff --git a/FWA_MAIN/obj/Debug/TransformWebConfig/transformed/Web.config b/FWA_MAIN/obj/Debug/TransformWebConfig/transformed/Web.config index 7f7b89f..627eaaf 100644 --- a/FWA_MAIN/obj/Debug/TransformWebConfig/transformed/Web.config +++ b/FWA_MAIN/obj/Debug/TransformWebConfig/transformed/Web.config @@ -8,13 +8,22 @@ - + + + + + + + + + + - +