public async Task <IActionResult> Login([FromBody][Bind("Email, Password")] UserLoginPostModel userview)
        {
            var login = _mapper.Map <User>(userview);

            if (_authService.IsUserDisabled(login))
            {
                return(Unauthorized("User disabled"));
            }

            User user = _authService.AuthUser(login);

            if (user == null)
            {
                return(Unauthorized("Incorrect email or password"));
            }

            var response = await _jwtTokenGenerator.NewAsync(user);

            if (user.Claims != null && user.Claims.Length > 0)
            {
                return(Ok(
                           new
                {
                    Name = user.Name,
                    Surname = user.Surname ?? "",
                    IsAdmin = user.Claims != null && user.Claims.Length > 0,
                    Token = response.token,
                    RefreshToken = response.refreshToken
                }));
            }

            return(Ok(
                       new
            {
                Name = user.Name,
                Surname = user.Surname ?? "",
                Token = response.token,
                RefreshToken = response.refreshToken
            }));
        }