CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 06:20:01 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=82dea5c67b84012e7bfc7610fcaf9bdf48d82f132edc788a8e8842a6c5cf5c74a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22IGms10rvarQvqGmP0ENMUblnlmchBYTv%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d47d2a5da6f473-BLR
public static function logIn(){ $request = \Slim\Slim::getInstance()->r - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function logIn(){
- $request = \Slim\Slim::getInstance()->request();
- // Since the request is in JSON format, we need to decode it
- $user = json_decode($request->getBody());
- // the rest of the code is just PDO stuff
- $sql = "SELECT id, passkey FROM users WHERE username=:username AND password=:password";
- try{
- $db = getConnection();
- $stmt=$db->prepare($sql);
- $stmt->bindParam(":username", $user->username);
- $stmt->bindParam(":password", md5sum($user->password + "salt"));
- $stmt->execute();
- $db = null;
- $row=$stmt->fetchAll(PDO::FETCH_OBJ);
- // here we check if there are rows
- if($row){
- echo '{"user":'.json_encode($row).'}';
- //echo json_encode($row);
- }
- else{
- $errArray = array('passkey'=>'false');
- echo '{"user":'.json_encode($errArray).'}';
- //echo json_encode($errArray);
- }
- }
- catch(PDOException $e){
- echo $e->getMessage();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Exploit 500$ in 15 Minutes⭐⭐
Java | 3 min ago | 0.10 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ O
JavaScript | 3 min ago | 0.25 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ 9
JavaScript | 3 min ago | 0.25 KB
-
⭐⭐⭐MAKE $900 INSTANTLY⭐⭐
Java | 3 min ago | 0.10 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ D
JavaScript | 3 min ago | 0.25 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 3 min ago | 0.10 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D A⭐⭐
Java | 3 min ago | 0.10 KB
-
📌 Swapzone +37% glitch ⭐ 2
JavaScript | 4 min ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand