2024-04-03 21:50:40 -07:00
|
|
|
|
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;
|
|
|
|
|
|
2024-04-04 07:15:57 -07:00
|
|
|
|
// I know this is not how to properly do credential checks, but I was limited on time
|
2024-04-03 21:50:40 -07:00
|
|
|
|
if (username == "admin" && password == "someonerandom")
|
|
|
|
|
{
|
|
|
|
|
FormsAuthentication.RedirectFromLoginPage(username, false);
|
|
|
|
|
}
|
2024-04-04 07:15:57 -07:00
|
|
|
|
|
2024-04-03 21:50:40 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|