docs: def users_create(email, password, active):
      """Create a user."""
      kwargs = dict(email=email, password=password, active='y' if active else '')
  
      form = ConfirmRegisterForm(MultiDict(kwargs), csrf_enabled=False)
  
      if form.validate():
          kwargs['password'] = hash_password(kwargs['password'])
          kwargs['active'] = active
          _datastore.create_user(**kwargs)
          click.secho('User created successfully.', fg='green')
          kwargs['password'] = '****'
          click.echo(kwargs)
      else:
          raise click.UsageError('Error creating user. %s' % form.errors)