This commit is contained in:
2018-10-27 04:22:47 -05:00
parent 5e962ea331
commit 07323ae78a

View File

@@ -41,6 +41,7 @@ class WikiController extends Controller
//Check to see if the user is already registered in the database
$check = DB::select('SELECT login FROM wiki_user WHERE login = ?', [$name]);
dd($check);
if($check[0]->login === $name) {
return redirect('/dashboard')->with('error', 'Already registered for the wiki!');
}
@@ -67,7 +68,6 @@ class WikiController extends Controller
$name = strtolower($name);
$name = str_replace(' ', '_', $name);
$check = DB::select('SELECT login FROM wiki_user WHERE login = ?', [$name]);
dd($check);
if($check[0]->login == $name) {
return redirect('/dashboard')->with('error', 'Login Not Found!');
}