Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/29/16 17:02:16 (8 years ago)
Author:
jlodewyc
Message:

#2582 Overhaul Login service, done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/LoginViewModel.cs

    r13733 r13739  
    1212    public class LoginViewModel
    1313    {
     14        /// <summary>
     15        /// Used only for the WebHive. Identifies logged in users.
     16        /// </summary>
     17        public Guid userId { get; set; }
     18        /// <summary>
     19        /// Login name from the user
     20        /// </summary>
    1421        [Display(Name = "Username")]
    1522        public string loginName { get; set; }
     23        /// <summary>
     24        /// Encrypted password
     25        /// </summary>
    1626        [Display(Name = "Password")]
    1727        public string password { get; set; }
    1828
    1929        public string errorMessage { get; set; }
     30        /// <summary>
     31        /// Initialize the loginViewModel. Creates a unique Guid for the WebHive
     32        /// </summary>
     33        /// <param name="n">Login name</param>
     34        /// <param name="p">Encrypted password</param>
     35        public LoginViewModel(string n, string p)
     36        {
     37            loginName = n;
     38            password = p;
     39            userId = Guid.NewGuid();
     40        }
     41        public LoginViewModel()
     42        {
     43            userId = Guid.Empty;
     44            loginName = "";
     45            password = "";
     46        }
    2047    }
    2148}
Note: See TracChangeset for help on using the changeset viewer.