We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f76c2 commit 2c28bd7Copy full SHA for 2c28bd7
app/controllers/better_together/omniauth_callbacks_controller.rb
@@ -18,10 +18,10 @@ def github
18
private
19
20
def verify_oauth_state
21
- if params[:state] != session[:oauth_state]
22
- flash[:alert] = 'Invalid OAuth state parameter'
23
- redirect_to new_user_registration_path
24
- end
+ return unless params[:state] != session[:oauth_state]
+
+ flash[:alert] = 'Invalid OAuth state parameter'
+ redirect_to new_user_registration_path
25
end
26
27
def handle_auth(kind) # rubocop:todo Metrics/AbcSize
0 commit comments