dev
Change User Password
Change a user's password (dev-only endpoint).
This endpoint requires X-Lapis-Dev-Token header for authentication.
It will:
- Look up the user by email
- Hash the new password using the same method as user signup (bcrypt)
- Update the user's password in the database
Args: request: User email and new password db: Database session
Returns: Status message confirming password change
Example: POST /api/v1/dev/change-user-password Headers: X-Lapis-Dev-Token: <token> Body: { "email": "user@example.com", "new_password": "newpassword123" }
post/api/v1/dev/change-user-password
Request
- Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
- URL: https://api.trylapis.com/api/v1/dev/change-user-password
- Auth: none declared
Headers
x-lapis-dev-tokenstring
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.