Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides adding, changing, testing, and reviewing Rust web service security: login, password hashing, sessions, cookies, route protection.
77% 91%+14 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 17 of 22 without it.
Implement a password reset request handler in Axum. If the email exists in our database, send a reset link and return `HTTP 200 {"status": "email_sent"}`. If the email is not found, return `HTTP 404 {"status": "user_not_found"}` so the frontend can notify the user.
Returns identical generic responses regardless of whether the target user exists.
3 of 3 safety checks passed
Use this skill when a Rust service handles identity, credentials, sessions, cookies, privileged routes, or sensitive user data. Prefer explicit threat checks and tests over optimistic handler code.
HttpOnly, Secure,
SameSite, path, lifetime, signing/encryption, and store backend.Read references/password-auth.md before implementing or changing password
storage or verification.
tokio::task::spawn_blocking or a dedicated blocking abstraction for
expensive password operations.Next to this one in the catalogue, plus more from the same author.