Require a LibreCaptcha challenge for the signup action #157

Merged
bustikiller merged 4 commits from libre-captcha into main 2024-12-01 19:03:56 +00:00
3 changed files with 6 additions and 0 deletions
Showing only changes of commit be9ca9e6b0 - Show all commits

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
class CaptchaController < ApplicationController class CaptchaController < ApplicationController
skip_before_action :authenticate_user! skip_before_action :authenticate_user!

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
class LibreCaptcha class LibreCaptcha
def get_id def get_id
HTTParty.post("http://libre-captcha:8888/v2/captcha", HTTParty.post("http://libre-captcha:8888/v2/captcha",

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'swagger_helper' require 'swagger_helper'
RSpec.describe 'captcha', type: :request do RSpec.describe 'captcha', type: :request do