Skip to content

Commit

Permalink
add recaptcha to job post request form
Browse files Browse the repository at this point in the history
  • Loading branch information
apoland committed May 13, 2024
1 parent b0d4a59 commit 9fc459b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ AllCops:
- 'vendor/**/*'

Style/StringLiterals:
EnforcedStyle: double_quotes
EnforcedStyle: double_quotes

Metrics/MethodLength:
Max: 100
4 changes: 3 additions & 1 deletion app/controllers/job_post_requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def create
SystemMailer.job_post_request(@job_post_request, @job).deliver_now
redirect_to new_job_post_request_path, notice: "Your job post request was sent successfully!"
else
flash[:notice] = "There was a problem with sending your job post request. Verify all fields are present and the reCAPTCHA is checked."
flash[:notice] =
"There was a problem with sending your job post request. "\
"Verify all fields are present and the reCAPTCHA is checked."
render :new
end
end
Expand Down

0 comments on commit 9fc459b

Please sign in to comment.