Disable account creation
parent
fc03c9e5c2
commit
31d111e5f0
|
@ -1,5 +1,9 @@
|
|||
# https://github.com/plataformatec/devise/blob/master/app/controllers/devise/registrations_controller.rb
|
||||
class Users::RegistrationsController < Devise::RegistrationsController
|
||||
def create
|
||||
|
||||
end
|
||||
|
||||
# def create
|
||||
# super{ |res| @user = res }
|
||||
|
||||
|
|
|
@ -16,16 +16,21 @@
|
|||
= f.actions do
|
||||
= f.action :submit, label: 'Login'
|
||||
|
||||
= semantic_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { id: 'new_registration' }) do |f|
|
||||
= f.semantic_errors
|
||||
= f.inputs do
|
||||
= f.input :email
|
||||
= f.input :name
|
||||
= f.input :password
|
||||
= f.input :remember_me, as: :boolean, required: false
|
||||
= redirect_to_input(f)
|
||||
= f.actions do
|
||||
= f.action :submit, label: 'Register'
|
||||
#new_registration
|
||||
%p.official-app-warning
|
||||
Account creation is disabled!<br/>
|
||||
Use the official app instead! <a href='http://mods.factorio.com'>http://mods.factorio.com</a>
|
||||
|
||||
-# = semantic_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { id: 'new_registration' }) do |f|
|
||||
-# = f.semantic_errors
|
||||
-# = f.inputs do
|
||||
-# = f.input :email
|
||||
-# = f.input :name
|
||||
-# = f.input :password
|
||||
-# = f.input :remember_me, as: :boolean, required: false
|
||||
-# = redirect_to_input(f)
|
||||
-# = f.actions do
|
||||
-# = f.action :submit, label: 'Register'
|
||||
|
||||
.devise-links
|
||||
= link_to 'Forgot your password?', new_password_path(resource_name)
|
||||
|
|
Loading…
Reference in New Issue