Skip to content

Craft Auth scaffolding, remove registration #754

@funkywaddle

Description

@funkywaddle

Is your feature request related to a problem?

I would like to have login, logout, password reset, etc functionality, but ability to remove registration for sites that I don't want registration open to the world.

What do we currently have to do now?

Not sure how to remove registration functionality.

Describe the solution you'd like

provide options to craft cli to scaffold the auth, but not include registration.

python craft auth --no-registration

This may require a create-user command to create a registered user since registration would be turned off, that asks for email, username, password, etc

python craft create-user

Describe alternatives you've considered

Alternatively, provide a way to turn off registration via configuration, so:

  • craft cli would do normal scaffolding.
  • I create the admin user,
  • Turn off registration via configuration

Would this be a breaking change ?

  • Yes

Anything else ?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions