Require a LibreCaptcha challenge for the signup action #157
@ -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!
|
||||||
|
|
||||||
|
@ -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",
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user