예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         UserAuthorizeMan_Business userAuthorize = new UserAuthorizeMan_Business();
         string nextURl = null;
         if (!string.IsNullOrEmpty(Request[RequestMSG.UserName]))
         {
             txtEmail.Text = FormBase.UrlDecode(Request[RequestMSG.UserName]);
         }
         if (!string.IsNullOrEmpty(Request[RequestMSG.NextURL]))
         {
             nextURl = FormBase.UrlDecode(Request[RequestMSG.NextURL]);
         }
         if (!string.IsNullOrEmpty(Request[RequestMSG.Password]))
         {
             txtPass.Text = FormBase.UrlDecode(Request[RequestMSG.Password]);
         }
         if (txtEmail.Text != string.Empty && txtPass.Text != string.Empty)
         {
             userAuthorize.Login(txtEmail.Text, txtPass.Text, nextURl);
         }
         if (SysProperty.Client.Roles[RoleType.User])
         {
             Response.Redirect(ServerDirectory.Host + "/Dashboard.aspx");
         }
     }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         UserAuthorizeMan_Business userAuthorize = new UserAuthorizeMan_Business();
         string nextURl = null;
         if (!string.IsNullOrEmpty(Request[RequestMSG.UserName]))
         {
             txtEmail.Text = FormBase.UrlDecode(Request[RequestMSG.UserName]);
         }
         if (!string.IsNullOrEmpty(Request[RequestMSG.NextURL]))
         {
             nextURl = FormBase.UrlDecode(Request[RequestMSG.NextURL]);
         }
         if (!string.IsNullOrEmpty(Request[RequestMSG.Password]))
         {
             txtPass.Text = FormBase.UrlDecode(Request[RequestMSG.Password]);
         }
         if (txtEmail.Text != string.Empty && txtPass.Text != string.Empty)
         {
             userAuthorize.Login(txtEmail.Text, txtPass.Text, nextURl);
         }
         if (SysProperty.Client.Roles[RoleType.User])
             Response.Redirect(ServerDirectory.Host + "/Dashboard.aspx");
     }
 }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (SysProperty.Client.UserID == 0)
     {
         UserAuthorizeMan_Business u = new UserAuthorizeMan_Business();
         u.Login("*****@*****.**", "123456", ServerDirectory.Host + "/HosseinTest.aspx");
     }
 }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (SysProperty.Client.UserID ==0)
     {
         UserAuthorizeMan_Business u = new UserAuthorizeMan_Business();
         u.Login("*****@*****.**", "123456", ServerDirectory.Host + "/HosseinTest.aspx");
     }
 }
예제 #5
0
    protected void btnLogin_Click(object sender, EventArgs e)
    {
        UserAuthorizeMan_Business userAuthorize = new UserAuthorizeMan_Business();

        userAuthorize.Login(txtEmail.Text, txtPass.Text);
    }
예제 #6
0
 protected void btnLogin_Click(object sender, EventArgs e)
 {
     UserAuthorizeMan_Business userAuthorize = new UserAuthorizeMan_Business();
     userAuthorize.Login(txtEmail.Text, txtPass.Text);
 }