mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-02-15 17:41:33 +01:00
#4 Done
This commit is contained in:
@@ -177,8 +177,6 @@ function loginRegister($default,$state=''){
|
||||
}
|
||||
|
||||
function loginOrRegister($state,$request){
|
||||
global $app;
|
||||
|
||||
switch ($state){
|
||||
case 3:
|
||||
return loginRegister('login','BAD_CREDENTIAL');
|
||||
|
||||
@@ -27,7 +27,7 @@ function checkInfo($request){
|
||||
function checklogin($email,$pass){
|
||||
$db = new DB();
|
||||
$bool = $db->checkPass($email,$pass);
|
||||
|
||||
|
||||
if($bool){
|
||||
$idu = $db->loadIDU($email);
|
||||
$token = RandomString(50);
|
||||
|
||||
Reference in New Issue
Block a user