Skip to content

Allow disabling of registrations #394

@Qwertie-

Description

@Qwertie-

Some stores for example wholesale stores do not allow users to sign up for their own accounts and require that you contact them by phone or email and they set up the user with an account. Currently spree does not seem to allow disabling of the registratable module.

Possible Fix

Change user.rb to

    devise :database_authenticatable, :recoverable,
           :rememberable, :trackable, :validatable, :encryptable, encryptor: 'authlogic_sha512'
    devise :confirmable if Spree::Auth::Config[:confirmable]
    devise :registerable if Spree::Auth::Config[:registerable]

One work around I see is overriding the registration route to point to a contact page which should block registrations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions