mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
fix travis
This commit is contained in:
parent
0c851f227c
commit
80fe1dd73b
1 changed files with 5 additions and 1 deletions
|
@ -4,7 +4,7 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
|||
only: %i(new create new_with_provider create_with_provider)
|
||||
before_action :sign_up_with_provider_enabled?,
|
||||
only: %i(new_with_provider create_with_provider)
|
||||
layout 'fluid'
|
||||
layout :layout
|
||||
|
||||
def avatar
|
||||
user = User.find_by_id(params[:id]) || current_user
|
||||
|
@ -292,6 +292,10 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
|||
|
||||
private
|
||||
|
||||
def layout
|
||||
'fluid' if action_name == 'edit'
|
||||
end
|
||||
|
||||
def check_captcha
|
||||
if Rails.configuration.x.enable_recaptcha
|
||||
unless verify_recaptcha
|
||||
|
|
Loading…
Reference in a new issue