Dont register users with more than 3 uppercase characters
This commit is contained in:
parent
89722fb788
commit
3770467735
5 changed files with 3786 additions and 4 deletions
|
|
@ -65,6 +65,12 @@ class RegisterController extends Controller
|
|||
*/
|
||||
protected function create(array $data)
|
||||
{
|
||||
if (preg_match_all('/[A-Z]/', $data['name']) > 3) {
|
||||
// The string contains more than 4 uppercase characters
|
||||
// echo "More than 3 uppercase letters found.";
|
||||
return;
|
||||
}
|
||||
|
||||
return User::create([
|
||||
'name' => $data['name'],
|
||||
'email' => $data['email'],
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@ services:
|
|||
db:
|
||||
image: mysql:5.7
|
||||
environment:
|
||||
MYSQL_DATABASE: ${DB_DATABASE}
|
||||
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
|
||||
MYSQL_PASSWORD: ${DB_PASSWORD}
|
||||
MYSQL_USER: ${DB_USERNAME}
|
||||
MYSQL_DATABASE: motorradig
|
||||
MYSQL_ROOT_PASSWORD: mig_password
|
||||
MYSQL_PASSWORD: mig_password
|
||||
MYSQL_USER: mig_user
|
||||
SERVICE_TAGS: dev
|
||||
SERVICE_NAME: mysql
|
||||
volumes:
|
||||
|
|
|
|||
3162
motorradig/usage_202503.html
Normal file
3162
motorradig/usage_202503.html
Normal file
File diff suppressed because it is too large
Load diff
307
tools/motorradig_2025-06-18_215643.sql
Normal file
307
tools/motorradig_2025-06-18_215643.sql
Normal file
File diff suppressed because one or more lines are too long
307
tools/motorradig_2025-06-29_111506.sql
Normal file
307
tools/motorradig_2025-06-29_111506.sql
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue