Slim API deployment - composer install + full CRUD endpoints
This commit is contained in:
12
api/test_login.php
Normal file
12
api/test_login.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
require __DIR__."/vendor/autoload.php";
|
||||
use App\Config\Container;
|
||||
Container::boot();
|
||||
$user = \App\Models\User::where("email", "admin@nordring.test")->first();
|
||||
if ($user) {
|
||||
echo "User found: " . $user->email . "\n";
|
||||
echo "Hash: " . $user->password_hash . "\n";
|
||||
echo "Verify: " . (password_verify("Tanja82", $user->password_hash) ? "OK" : "FAIL") . "\n";
|
||||
} else {
|
||||
echo "User not found";
|
||||
}
|
||||
Reference in New Issue
Block a user