mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-12-06 01:38:25 +01:00
#4 Done
This commit is contained in:
1 parent
7cb682c146
commit
dffbaacfbd
8 files changed
+10
-40
No files matched your search
@@ -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