Disable account creation

master
Zequez 2016-07-11 00:54:29 -03:00 committed by Ezequiel Schwartzman
parent fc03c9e5c2
commit 31d111e5f0
2 changed files with 19 additions and 10 deletions

View File

@ -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 }

View File

@ -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)