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)); }
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)); }