mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/17414] Start work on new captcha classes
PHPBB-17414
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace foo\test_captcha\captcha;
|
||||
|
||||
class test_captcha extends \phpbb\captcha\plugins\captcha_abstract
|
||||
{
|
||||
|
||||
function get_generator_class()
|
||||
{
|
||||
}
|
||||
|
||||
public function init($type)
|
||||
{
|
||||
}
|
||||
|
||||
public function execute_demo()
|
||||
{
|
||||
}
|
||||
|
||||
public function execute()
|
||||
{
|
||||
}
|
||||
|
||||
public function validate()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function is_solved()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
23
tests/functional/fixtures/ext/foo/test_captcha/composer.json
Normal file
23
tests/functional/fixtures/ext/foo/test_captcha/composer.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "foo/test_captcha",
|
||||
"type": "phpbb-extension",
|
||||
"description": "Testing extension for having a working captcha plugin",
|
||||
"homepage": "",
|
||||
"version": "1.0.0",
|
||||
"time": "2024-03-24 01:01:01",
|
||||
"license": "GPL-2.0",
|
||||
"authors": [{
|
||||
"name": "phpBB Limited",
|
||||
"homepage": "https://www.phpbb.com",
|
||||
"role": "Developer"
|
||||
}],
|
||||
"require": {
|
||||
"php": ">=8.1"
|
||||
},
|
||||
"extra": {
|
||||
"display-name": "phpBB 4.0 Test Captcha",
|
||||
"soft-require": {
|
||||
"phpbb/phpbb": "4.0.*@dev"
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
services:
|
||||
foo_test_captcha.captcha.test_captcha:
|
||||
class: foo\test_captcha\captcha\test_captcha
|
||||
tags:
|
||||
- { name: captcha.plugins }
|
Reference in New Issue
Block a user