pixelfed/patches/0005-allow-30-char-username...

27 lines
849 B
Diff
Raw Normal View History

2024-01-24 12:20:14 +00:00
From 2eaeb254502b00f9d25eeaec607f10f8692e96a2 Mon Sep 17 00:00:00 2001
From: chris <cg@zknt.org>
Date: Wed, 24 Jan 2024 13:06:07 +0100
2023-10-08 13:00:18 +00:00
Subject: [PATCH 5/6] allow 30 char usernames
raise maximum username length, because why not?
---
app/Http/Controllers/Auth/RegisterController.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php
2024-01-24 12:20:14 +00:00
index 8c10e5d0..12b8c1b3 100644
2023-10-08 13:00:18 +00:00
--- a/app/Http/Controllers/Auth/RegisterController.php
+++ b/app/Http/Controllers/Auth/RegisterController.php
@@ -70,7 +70,7 @@ class RegisterController extends Controller
$usernameRules = [
'required',
'min:2',
- 'max:15',
+ 'max:30',
'unique:users',
function ($attribute, $value, $fail) {
$dash = substr_count($value, '-');
--
2024-01-24 12:20:14 +00:00
2.43.0
2023-10-08 13:00:18 +00:00