flask
Login-required decorator for JSON routes
Answer 401 JSON instead of redirecting to the login page.
Copy-ready, tested snippets for Python, Flask, JavaScript, SQL, HTML, CSS and Bash. Open any of them in the playground.
2 snippets
Answer 401 JSON instead of redirecting to the login page.
Make email-verification or reset links that expire, without a database table.
No saved snippets on this page yet. Use the bookmark button to save one.