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); }
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); }
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(); }
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(); }
public LoginViewModel(ApplicationSettings settings, IEnumerable <IAuthenticationProvider> configuredProviders, IEnumerable <ChatUserIdentity> userIdentities) { SocialDetails = new SocialLoginViewModel(configuredProviders, userIdentities); AllowUserRegistration = settings.AllowUserRegistration; }
public LoginViewModel(ApplicationSettings settings, IEnumerable<IAuthenticationProvider> configuredProviders, IEnumerable<ChatUserIdentity> userIdentities) { SocialDetails = new SocialLoginViewModel(configuredProviders, userIdentities); AllowUserRegistration = settings.AllowUserRegistration; }
public LoginViewModel(AuthenticationMode authMode, IEnumerable <IAuthenticationProvider> configuredProviders, IEnumerable <ChatUserIdentity> userIdentities) { AuthenticationMode = authMode; SocialDetails = new SocialLoginViewModel(configuredProviders, userIdentities); }
public LoginViewModel(IEnumerable<IAuthenticationProvider> configuredProviders, IEnumerable<ChatUserIdentity> userIdentities) { SocialDetails = new SocialLoginViewModel(configuredProviders, userIdentities); }