Skip to content

Commit

Permalink
feat: Increase server name limit from 24 to 40 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz authored Oct 21, 2024
1 parent 8245c56 commit 8682ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/API/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function checkAccess()
*/
public function checkName()
{
if (strlen((string) request('name')) > 24) {
if (strlen((string) request('name')) > 40) {
return response()->json(['name' => 'Lütfen daha kısa bir sunucu adı girin.'], 422);
}
if (! Server::where('name', request('name'))->exists()) {
Expand Down

0 comments on commit 8682ab6

Please sign in to comment.