Kaydet (Commit) 515a516f authored tarafından mertcelen's avatar mertcelen

Fix for empty server group names.

üst 9facc53d
......@@ -372,6 +372,9 @@ class MainController extends Controller
public function addServerGroup()
{
if(!request('name') || strlen(request('name')) < 1){
return respond("Lütfen bir grup ismi girin.",201);
}
if (ServerGroup::where('name', request('name'))->exists()) {
return respond("Bu isimle zaten bir grup var.", 201);
}
......
1.0.3
\ No newline at end of file
1.0.4
\ No newline at end of file
Markdown is supported
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