File: init.rb

package info (click to toggle)
redmine-plugin-simple-captcha 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 104 kB
  • sloc: ruby: 79; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 820 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2025 Soren Stoutner <soren@stoutner.com>
#
# This file is part of Redmine Simple Captcha.  <https://github.com/sorenstoutner/redmine_simple_captcha>
# See LICENSE for more information.

require_relative './lib/account_controller_patch'
require_relative './lib/user_patch'

Redmine::Plugin.register :redmine_simple_captcha do
  name 'Simple CAPTCHA'
  author 'Soren Stoutner'
  description 'Adds a very simple captcha to the account registration page.'
  version '1.0'
  url 'https://github.com/sorenstoutner/redmine_simple_captcha'
  author_url 'https://github.com/sorenstoutner'
  settings({
     :partial => 'settings/settings',
     :default => {
       'simple_captcha_question' => 'CHANGE ME',
       'simple_captcha_answer' => 'CHANGE ME',
      }
  })
end