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