Ejemplo n.º 1
0
 public static UserModel FromUser(User u)
 {
     return new UserModel()
     {
         Id = u.Id,
         DisplayName = u.DisplayName,
         Email = u.Email
     };
 }
Ejemplo n.º 2
0
 public static AuthenticationResult Registered(User user)
 {
     return new AuthenticationResult(AuthenticationOutcome.Registered, user, new List<string>());
 }
Ejemplo n.º 3
0
 public static AuthenticationResult Associated(User user)
 {
     return new AuthenticationResult(AuthenticationOutcome.Associated, user, new List<string>());
 }
Ejemplo n.º 4
0
 public static AuthenticationResult LoggedIn(User user)
 {
     return new AuthenticationResult(AuthenticationOutcome.LoggedIn, user, new List<string>());
 }
Ejemplo n.º 5
0
 public AuthenticationResult(AuthenticationOutcome outcome, User user, IList<string> missingFields)
 {
     Outcome = outcome;
     User = user;
     MissingFields = missingFields;
 }