Developer Admin
$ php -S 0.0.0.0:8000
if(!hash_equals($t1,$t2)) die('csrf');
SELECT * FROM users WHERE username = :u;console.log('build', Date.now())
fetch('/login',{method:'POST'})function login(u,p){ return !!u && !!p }
interface Guard{ canActivate():boolean }git commit -m "feat(auth): rate limit" nginx: proxy_pass http://127.0.0.1:9000
header('X-Frame-Options: DENY')
$pdo = new PDO('sqlite:auth.sqlite')type User={id:number;name:string}
const sha = await crypto.subtle.digest('SHA-256', data)<input name="username" /> <input type="password" />
@keyframes scroll{from{transform:translateY(-100%)}to{transform:translateY(110%)}}openssl rand -hex 32 # token session_regenerate_id(true)
docker run --rm -p 8000:80 nginx:alpine
fetch('/sessions',{credentials:'include'})
return redirect('/index.php')PRAGMA journal_mode=WAL
try { const r = await fetch('/api') } catch(e){}INSERT INTO users (u,ph) VALUES (:u,:h)
setcookie('ADMINSESSID','', time()-42000, '/')const ok = password_verify(p, hash)
npm run build && npm run preview
curl -s https://api.dev | jq '.status'
SELECT COUNT(*) FROM login_attempts WHERE ip = :ip
Array.from(forms).forEach(f=>f.classList.add('was-validated'))