testing
This commit is contained in:
@@ -41,11 +41,10 @@ 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(isset($check[0]) && ($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!');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Add the new user to the wiki
|
//Add the new user to the wiki
|
||||||
$user->login = $name;
|
$user->login = $name;
|
||||||
$user->pass = $password;
|
$user->pass = $password;
|
||||||
|
|||||||
Reference in New Issue
Block a user