Beispiel #1
0
        public async Task <ActionResult> Index([FromQuery] UsersListRequestVM vm)
        {
            var users = await _users.GetUsersAsync(vm);

            ViewBag.AllowPasswordAuth = _config.GetStaticConfig().Auth.AllowPasswordAuth;
            return(View(users));
        }
Beispiel #2
0
 /// <summary>
 /// Displays the login page.
 /// </summary>
 private async Task <ActionResult> ViewLoginFormAsync(LoginStatus?status, string returnUrl = null)
 {
     ViewBag.Data = new LoginDataVM
     {
         ReturnUrl         = returnUrl,
         AllowGuests       = _cfgProvider.GetAppConfig().AllowGuests,
         AllowPasswordAuth = _cfgProvider.GetStaticConfig().Auth.AllowPasswordAuth,
         Providers         = _provs.AvailableProviders,
         IsFirstUser       = await _auth.IsFirstUserAsync(),
         Status            = status
     };
     return(View(new LocalLoginVM()));
 }