Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disabling of registrations #394

Open
Qwertie- opened this issue Aug 4, 2017 · 0 comments · May be fixed by #439
Open

Allow disabling of registrations #394

Qwertie- opened this issue Aug 4, 2017 · 0 comments · May be fixed by #439

Comments

@Qwertie-
Copy link

Qwertie- commented Aug 4, 2017

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.

@brettallred brettallred linked a pull request Aug 2, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant