Пример #1
0
 public async Task CreatePassword(PasswordRequest passwordRequest)
 {
     await _dynamoClient.PutItemAsync(DynamoConstants.CREDENTIALS_TABLE, new Dictionary <string, AttributeValue>
     {
         { DynamoConstants.UserIdKey, new AttributeValue(passwordRequest.UserId) },
         { DynamoConstants.EmailKey, new AttributeValue(passwordRequest.Email) },
         { DynamoConstants.PasswordHashKey, new AttributeValue(
               PasswordHashHelper.Generate(passwordRequest.Password)) }
     });
 }