コード例 #1
0
        public async Task <PreloginResponseModel> PostPrelogin([FromBody] PreloginRequestModel model)
        {
            var kdfInformation = await _userRepository.GetKdfInformationByEmailAsync(model.Email);

            if (kdfInformation == null)
            {
                throw new NotFoundException();
            }
            return(new PreloginResponseModel(kdfInformation));
        }
コード例 #2
0
        public async Task <PreloginResponseModel> PostPrelogin([FromBody] PreloginRequestModel model)
        {
            var kdfInformation = await _userRepository.GetKdfInformationByEmailAsync(model.Email);

            if (kdfInformation == null)
            {
                kdfInformation = new UserKdfInformation
                {
                    Kdf           = KdfType.PBKDF2_SHA256,
                    KdfIterations = 100000
                };
            }
            return(new PreloginResponseModel(kdfInformation));
        }