Esempio n. 1
0
 public Form3(Registration f, Account.User user)
 {
     InitializeComponent();
     label1.Text = user.FirstName;
     label2.Text = user.SecondName;
     label3.Text = user.Money.ToString();
     this.user   = user;
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Account.User user = (Account.User)Session["CurrentUser"];
     if (user == null)
     {
         Response.Redirect("Login.aspx");
     }
     else
     {
         HttpCookie loginCookie = new HttpCookie("loginCookie");
         loginCookie       = Request.Cookies["loginCookie"];
         lblUser.Text      = "Hello, " + user.Name + "! (" + user.Email + ")";
         lblLoginTime.Text = "Active since: " + loginCookie.Value;
     }
 }
Esempio n. 3
0
 /// <summary>
 /// return the Maestrano logout url to be used for redirecting a user after logout
 /// </summary>
 public string LogoutUrl(Account.User user)
 {
     return(LogoutUrl(user.Id));
 }