Skip to content

Commit

Permalink
Removed unneeded Sign Up functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
antisnatchor committed Oct 25, 2015
1 parent d56fc09 commit 6a0ee72
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 32 deletions.
1 change: 0 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class ApplicationController < ActionController::Base

def configure_permitted_parameters
devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:username) }
devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:username, :name, :email, :password, :password_confirmation) }
devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:username, :name, :email, :password, :password_confirmation, :current_password) }
end

Expand Down
26 changes: 0 additions & 26 deletions app/views/devise/registrations/new.html.erb

This file was deleted.

4 changes: 0 additions & 4 deletions app/views/devise/shared/_links.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
<%= link_to "Sign in", new_session_path(resource_name) %><br />
<% end -%>

<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
<% end -%>

<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
<% end -%>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/devise.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ en:
locked: "Your account is locked."
not_found_in_database: "Invalid email or password."
timeout: "Your session expired. Please sign in again to continue."
unauthenticated: "You need to sign in or sign up before continuing."
unauthenticated: "You need to sign in before continuing."
unconfirmed: "You have to confirm your account before continuing."
not_approved: 'Your account has not been approved by your administrator yet.'
mailer:
Expand Down

0 comments on commit 6a0ee72

Please sign in to comment.