Please CodeClimate
This commit is contained in:
		
							
								
								
									
										2
									
								
								Gemfile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Gemfile
									
									
									
									
									
								
							@@ -157,4 +157,4 @@ gem 'connection_pool', require: false
 | 
			
		||||
 | 
			
		||||
gem 'xorcist', '~> 1.1'
 | 
			
		||||
 | 
			
		||||
gem "hcaptcha", "~> 7.1"
 | 
			
		||||
gem 'hcaptcha', '~> 7.1'
 | 
			
		||||
 
 | 
			
		||||
@@ -35,14 +35,14 @@ module CaptchaConcern
 | 
			
		||||
 | 
			
		||||
    if verify_hcaptcha
 | 
			
		||||
      session[:captcha_passed_at] = Time.now.utc
 | 
			
		||||
      return true
 | 
			
		||||
      true
 | 
			
		||||
    else
 | 
			
		||||
      if block_given?
 | 
			
		||||
        message = flash[:hcaptcha_error]
 | 
			
		||||
        flash.delete(:hcaptcha_error)
 | 
			
		||||
        yield message
 | 
			
		||||
      end
 | 
			
		||||
      return false
 | 
			
		||||
      false
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user