Skip to content
Snippets Groups Projects
Commit 84d7d899 authored by farhatahmad's avatar farhatahmad Committed by Jesus Federico
Browse files

Small bug fix (#508)

parent 2e064de0
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ class UsersController < ApplicationController
# Add validation errors to model if they exist
valid_user = @user.valid?
valid_captcha = config.recaptcha_enabled ? verify_recaptcha(model: @user) : true
valid_captcha = Rails.configuration.recaptcha_enabled ? verify_recaptcha(model: @user) : true
if valid_user && valid_captcha
@user.save
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment