Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
skip user confirmation in development
Browse files Browse the repository at this point in the history
  • Loading branch information
jpslav committed Jun 16, 2014
1 parent 6313533 commit a23d924
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def create
else
resource.username = params[:user][:username]

resource.skip_confirmation! if Ost::Application.config.skip_user_confirmation

@enable_recaptcha = @@enable_recaptcha

if (!@enable_recaptcha || verify_recaptcha(:model => resource,
Expand Down
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Application < Rails::Application

config.enable_response_times = true

config.skip_user_confirmation = false

config.carrierwave_storage = :file
end
end
2 changes: 2 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@

config.enable_response_times = false

config.skip_user_confirmation = true

## Uncomment the following lines to enable mailcatcher: http://mailcatcher.me/
# config.action_mailer.delivery_method = :smtp
# config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
Expand Down

0 comments on commit a23d924

Please sign in to comment.