Commit 9c613d7b authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

captcha is more readable now

parent 2ed43d23
......@@ -44,7 +44,8 @@ class HumanVerification extends Controller
->with('id', $human_verification->id)
->with('url', $redirect_url)
->with('correct', $captcha["key"])
->with('image', $captcha["img"]);
->with('image', $captcha["img"])
->with('css', [mix('css/verify/index.css')]);
}
public static function captchaSolve(Request $request)
......
......@@ -5,10 +5,17 @@ return [
'characters' => '2346789abcdefghjmnpqrtuxyzABCDEFGHJMNPQRTUXYZ',
'default' => [
'bgImage' => true,
'bgColor' => '#ecf2f4',
'fontColors' => ['#2c3e50', '#c0392b', '#16a085', '#c0392b', '#8e44ad', '#303f9f', '#f57c00', '#795548'],
'length' => 5,
'width' => 220,
'height' => 66,
'quality' => 90,
'width' => 500,
'height' => 125,
'quality' => 1,
'contrast' => -5,
'sensitive' => false,
'lines' => 15,
'invert' => false,
],
'flat' => [
......@@ -19,7 +26,7 @@ return [
'lines' => 6,
'bgImage' => false,
'bgColor' => '#ecf2f4',
'fontColors'=> ['#2c3e50', '#c0392b', '#16a085', '#c0392b', '#8e44ad', '#303f9f', '#f57c00', '#795548'],
'fontColors' => ['#2c3e50', '#c0392b', '#16a085', '#c0392b', '#8e44ad', '#303f9f', '#f57c00', '#795548'],
'contrast' => -5,
],
......
<?php
return [
'1' => 'Entschuldigen Sie die Störung',
'2' => 'Sie befinden sich in einem Netzwerk aus dem wir verstärkt automatisierte Anfragen erhalten. Keine Sorge: Das bedeutet nicht unbedingt, dass diese Anfragen von Ihrem PC kommen.',
'3' => 'Allerdings können wir Ihre Anfragen nicht von denen des "Robots" unterscheiden. Zum Schutz der von uns abgefragten Suchmaschinen müssen wir aber sicherstellen, dass diese nicht mit (automatisierten) Abfragen überflutet werden.',
'4' => 'Bitte geben Sie deshalb die Zeichen aus dem Bild in die Eingabebox und bestätigen Sie mit "OK" um zur Ergebnisseite zu gelangen.',
'5' => 'Captcha eingeben',
'6' => 'Wochentag eingeben',
'2' => 'Bitte geben Sie die 5 Zeichen aus dem Bild in die Eingabebox und bestätigen Sie mit "OK" um zur Ergebnisseite zu gelangen.',
'3' => 'Captcha eingeben',
];
<?php
return [
'1' => 'Sorry to bother you',
'2' => 'You are in a network from which we increasingly receive automated requests. Do not worry: this does not necessarily mean that these requests come from your PC.',
'3' => 'However, we can not distinguish your requests from those of the "robot". To protect the search engines we query, we must ensure that they are not flooded with (automated) queries.',
'4' => 'Please enter the characters from the picture in the input box and confirm with "OK" to get to the result page.',
'5' => 'Enter captcha',
'6' => 'Enter weekday',
'2' => 'Please enter the five characters from the picture in the input box and confirm with "OK" to get to the result page.',
'3' => 'Enter captcha',
];
<?php
return [
'1' => 'Perdon por la molestia',
'2' => 'Estás en una red desde la que recibimos cada vez más consultas automáticas. No se preocupe: esto no significa necesariamente que estas solicitudes provengan de su PC.',
'3' => 'Sin embargo, no podemos distinguir sus peticiones de las del "robot". Para proteger los motores de búsqueda que consultamos, debemos asegurarnos de que no estén inundados de consultas (automatizadas).',
'4' => 'Ingrese los caracteres de la imagen en el cuadro de entrada y confirme con "OK" para llegar a la página de resultados.',
'5' => 'Entrar en captcha',
'6' => 'Entrar en día laborable',
'2' => 'Ingrese los cinco caracteres de la imagen en el cuadro de entrada y confirme con "OK" para llegar a la página de resultados.',
'3' => 'Entrar en captcha',
];
#captcha-container {
display: flex;
justify-content: center;
margin-bottom: 2rem;
>img {
max-width: 100%;
max-width: min
}
}
\ No newline at end of file
......@@ -5,20 +5,20 @@
@section('content')
<h1>@lang('captcha.1')</h1>
<p>@lang('captcha.2')</p>
<p>@lang('captcha.3')</p>
<p>@lang('captcha.4')</p>
<form method="post" action="{{ route('captcha_solve') }}">
<input type="hidden" name="url" value="{!! $url !!}">
<input type="hidden" name="uid" value="{{ $uid }}">
<input type="hidden" name="id" value="{{ $id }}">
<input type="hidden" name="c" value="{{ $correct }}">
<p><img src="{{ $image }}" /></p>
<div id="captcha-container">
<img src="{{ $image }}" />
</div>
@if(Request::has('e'))
<p>
<font color="red">{{ __('Fehler: Falsche Eingabe!') }}</font>
</p>
@endif
<p><input type="text" class="form-control" name="captcha" placeholder="@lang('captcha.5')" autofocus></p>
<p><input type="text" class="form-control" name="captcha" placeholder="@lang('captcha.3')" autofocus required></p>
<p><button type="submit" class="btn btn-success" name="check">OK</button></p>
</form>
@endsection
\ No newline at end of file
......@@ -29,6 +29,7 @@ mix
.less("resources/less/metager/pages/plugin-page.less", "public/css/plugin-page.css")
.less("resources/less/metager/pages/count/style-dark.less", "public/css/count/dark.css")
.less("resources/less/metager/pages/count/style.less", "public/css/count/style.css")
.less("resources/less/metager/pages/verify/index.less", "public/css/verify/index.css")
.less("resources/less/metager/pages/admin/affilliates/index.less", "public/css/admin/affilliates/index.css")
.less("resources/less/metager/pages/admin/affilliates/index-dark.less", "public/css/admin/affilliates/index-dark.css")
.less("resources/less/metager/pages/admin/bot/index.less", "public/css/admin/bot/index.css")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment