mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
add ambrosia-container to registration form as honeypot for bots: new form field "username" must not be filled
This commit is contained in:
parent
1b1cb18839
commit
31272e60b6
@ -87,6 +87,7 @@ class RegisterController extends Controller
|
||||
'name' => ['required', 'min:2', 'max:100'],
|
||||
'email' => ['required', 'email', 'max:255', 'unique:users'],
|
||||
'password' => ['required', Password::default()],
|
||||
'username' => ['prohibited'], // this is a honeypot for bots that must not be filled in
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@ -389,6 +389,17 @@ input[type=color] {
|
||||
}
|
||||
}
|
||||
|
||||
.form-group.ambrosia-container, .form-group.ambrosia-container * {
|
||||
position:absolute;
|
||||
height:0px !important;
|
||||
width:0px !important;
|
||||
margin:0 !important;
|
||||
padding:0 !important;
|
||||
background:transparent !important;
|
||||
color:transparent !important;
|
||||
border:none !important;
|
||||
}
|
||||
|
||||
.title-input input[type="text"] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
@ -13,6 +13,11 @@
|
||||
<form action="{{ url("/register") }}" method="POST" class="mt-l stretch-inputs">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<div class="form-group ambrosia-container">
|
||||
<label for="name">{{ trans('auth.name') }}</label>
|
||||
@include('form.text', ['name' => 'username'])
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name">{{ trans('auth.name') }}</label>
|
||||
@include('form.text', ['name' => 'name'])
|
||||
|
Loading…
Reference in New Issue
Block a user