Small bug fix (#508)

This commit is contained in:
farhatahmad 2019-05-07 18:11:13 -04:00 committed by Jesus Federico
parent 2e064de0a9
commit 84d7d8992a
1 changed files with 1 additions and 1 deletions

View File

@ -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