コード例 #1
0
ファイル: LoginViewModel.cs プロジェクト: richross/JabbR
 public LoginViewModel(ApplicationSettings settings, IEnumerable <IAuthenticationProvider> configuredProviders, IEnumerable <ChatUserIdentity> userIdentities)
 {
     SocialDetails          = new SocialLoginViewModel(configuredProviders, userIdentities);
     AllowUserRegistration  = settings.AllowUserRegistration;
     AllowUserResetPassword = settings.AllowUserResetPassword;
     HasEmailSender         = !string.IsNullOrWhiteSpace(settings.EmailSender);
 }
コード例 #2
0
 public LoginViewModel(ApplicationSettings settings, IEnumerable<IAuthenticationProvider> configuredProviders, IEnumerable<ChatUserIdentity> userIdentities)
 {
     SocialDetails = new SocialLoginViewModel(configuredProviders, userIdentities);
     AllowUserRegistration = settings.AllowUserRegistration;
     AllowUserResetPassword = settings.AllowUserResetPassword;
     HasEmailSender = !string.IsNullOrWhiteSpace(settings.EmailSender);
 }
コード例 #3
0
 public ProfilePageViewModel(ChatUser user, IEnumerable<IAuthenticationProvider> configuredProviders)
 {
     Name = user.Name;
     Hash = user.Hash;
     Active = user.Status == (int)UserStatus.Active;
     Status = ((UserStatus)user.Status).ToString();
     Note = user.Note;
     AfkNote = user.AfkNote;
     IsAfk = user.IsAfk;
     Flag = user.Flag;
     Country = ChatService.GetCountry(user.Flag);
     LastActivity = user.LastActivity;
     IsAdmin = user.IsAdmin;
     SocialDetails = new SocialLoginViewModel(configuredProviders, user.Identities);
     HasPassword = user.HasUserNameAndPasswordCredentials();
 }
コード例 #4
0
 public ProfilePageViewModel(ChatUser user, IEnumerable <IAuthenticationProvider> configuredProviders)
 {
     Name          = user.Name;
     Hash          = user.Hash;
     Active        = user.Status == (int)UserStatus.Active;
     Status        = ((UserStatus)user.Status).ToString();
     Note          = user.Note;
     AfkNote       = user.AfkNote;
     IsAfk         = user.IsAfk;
     Flag          = user.Flag;
     Country       = ChatService.GetCountry(user.Flag);
     LastActivity  = user.LastActivity;
     IsAdmin       = user.IsAdmin;
     SocialDetails = new SocialLoginViewModel(configuredProviders, user.Identities);
     HasPassword   = user.HasUserNameAndPasswordCredentials();
 }
コード例 #5
0
 public LoginViewModel(ApplicationSettings settings, IEnumerable <IAuthenticationProvider> configuredProviders, IEnumerable <ChatUserIdentity> userIdentities)
 {
     SocialDetails         = new SocialLoginViewModel(configuredProviders, userIdentities);
     AllowUserRegistration = settings.AllowUserRegistration;
 }
コード例 #6
0
 public LoginViewModel(ApplicationSettings settings, IEnumerable<IAuthenticationProvider> configuredProviders, IEnumerable<ChatUserIdentity> userIdentities)
 {
     SocialDetails = new SocialLoginViewModel(configuredProviders, userIdentities);
     AllowUserRegistration = settings.AllowUserRegistration;
 }
コード例 #7
0
 public LoginViewModel(AuthenticationMode authMode, IEnumerable <IAuthenticationProvider> configuredProviders, IEnumerable <ChatUserIdentity> userIdentities)
 {
     AuthenticationMode = authMode;
     SocialDetails      = new SocialLoginViewModel(configuredProviders, userIdentities);
 }
コード例 #8
0
ファイル: LoginViewModel.cs プロジェクト: csainty/JabbR
 public LoginViewModel(IEnumerable<IAuthenticationProvider> configuredProviders, IEnumerable<ChatUserIdentity> userIdentities)
 {
     SocialDetails = new SocialLoginViewModel(configuredProviders, userIdentities);
 }