/// <summary>
 /// Initializes a new instance of the <see cref="UserStruct"/> struct.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <param name="password">The password.</param>
 /// <param name="authTyp">The auth typ.</param>
 /// <param name="passwordIsHashed">if set to <c>true</c> password is hashed.</param>
 /// <param name="closeOpenSessions">if set to <c>true</c> close open sessions.</param>
 /// <remarks>Documented by Dev03, 2008-11-27</remarks>
 public UserStruct(string username, string password, UserAuthenticationTyp authTyp, bool passwordIsHashed, bool closeOpenSessions)
     : this(username)
 {
     Password           = passwordIsHashed ? password : Methods.GetHashedPassword(password);
     AuthenticationType = authTyp;
     CloseOpenSessions  = closeOpenSessions;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserStruct"/> struct.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <remarks>Documented by Dev05, 2009-03-04</remarks>
 private UserStruct(string username)
 {
     UserName           = username;
     Password           = string.Empty;
     Identifier         = string.Empty;
     AuthenticationType = null;
     CloseOpenSessions  = false;
     LastLoginError     = LoginError.NoError;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserStruct"/> struct.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <param name="authTyp">The auth typ.</param>
 /// <param name="closeOpenSessions">if set to <c>true</c> [close open sessions].</param>
 /// <remarks>Documented by Dev03, 2008-11-27</remarks>
 public UserStruct(string username, UserAuthenticationTyp authTyp, bool closeOpenSessions)
     : this(username)
 {
     AuthenticationType = authTyp;
     CloseOpenSessions  = closeOpenSessions;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserStruct"/> struct.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <param name="identifier">The identifier.</param>
 /// <param name="authTyp">The auth typ.</param>
 /// <remarks>
 /// Documented by CFI, 13.01.2009.
 /// </remarks>
 public UserStruct(string username, string identifier, UserAuthenticationTyp authTyp)
     : this(username)
 {
     Identifier         = identifier;
     AuthenticationType = authTyp;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserStruct"/> struct.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <param name="authTyp">The auth typ.</param>
 /// <remarks>Documented by Dev03, 2008-11-27</remarks>
 public UserStruct(string username, UserAuthenticationTyp authTyp)
     : this(username)
 {
     AuthenticationType = authTyp;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserStruct"/> struct.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <remarks>Documented by Dev05, 2009-03-04</remarks>
 private UserStruct(string username)
 {
     UserName = username;
     Password = string.Empty;
     Identifier = string.Empty;
     AuthenticationType = null;
     CloseOpenSessions = false;
     LastLoginError = LoginError.NoError;
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserStruct"/> struct.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <param name="password">The password.</param>
 /// <param name="authTyp">The auth typ.</param>
 /// <param name="passwordIsHashed">if set to <c>true</c> password is hashed.</param>
 /// <param name="closeOpenSessions">if set to <c>true</c> close open sessions.</param>
 /// <remarks>Documented by Dev03, 2008-11-27</remarks>
 public UserStruct(string username, string password, UserAuthenticationTyp authTyp, bool passwordIsHashed, bool closeOpenSessions)
     : this(username)
 {
     Password = passwordIsHashed ? password : Methods.GetHashedPassword(password);
     AuthenticationType = authTyp;
     CloseOpenSessions = closeOpenSessions;
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserStruct"/> struct.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <param name="authTyp">The auth typ.</param>
 /// <param name="closeOpenSessions">if set to <c>true</c> [close open sessions].</param>
 /// <remarks>Documented by Dev03, 2008-11-27</remarks>
 public UserStruct(string username, UserAuthenticationTyp authTyp, bool closeOpenSessions)
     : this(username)
 {
     AuthenticationType = authTyp;
     CloseOpenSessions = closeOpenSessions;
 }
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserStruct"/> struct.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <param name="identifier">The identifier.</param>
 /// <param name="authTyp">The auth typ.</param>
 /// <remarks>
 /// Documented by CFI, 13.01.2009.
 /// </remarks>
 public UserStruct(string username, string identifier, UserAuthenticationTyp authTyp)
     : this(username)
 {
     Identifier = identifier;
     AuthenticationType = authTyp;
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserStruct"/> struct.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <param name="authTyp">The auth typ.</param>
 /// <remarks>Documented by Dev03, 2008-11-27</remarks>
 public UserStruct(string username, UserAuthenticationTyp authTyp)
     : this(username)
 {
     AuthenticationType = authTyp;
 }