mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-30 14:39:56 -05:00
feat(dashboard): improve dashboard settings for user and tokens (#275)
* feat: expires at as Date * wip: change passwords * feat: user can change their password * chore: cleanup * chore: linting * chore: fix build issue * fix: protoc version * chore: resolve feedback * fix: ref * fix: password inputs * chore: update generated * fix: update respository * feat: only show change password if user has password * fix: linting * fix: validation string * chore: regen api --------- Co-authored-by: gabriel ruttner <gabe@hatchet.run>
This commit is contained in:
@@ -36,6 +36,45 @@ login:
|
||||
summary: Login user
|
||||
tags:
|
||||
- User
|
||||
update-password:
|
||||
post:
|
||||
description: Update a user password.
|
||||
operationId: user:update:password
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../components/schemas/_index.yaml#/UserChangePasswordRequest"
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../components/schemas/_index.yaml#/User"
|
||||
description: Successfully changed password
|
||||
"400":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../components/schemas/_index.yaml#/APIErrors"
|
||||
description: A malformed or bad request
|
||||
"401":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../components/schemas/_index.yaml#/APIErrors"
|
||||
description: Unauthorized
|
||||
"405":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../components/schemas/_index.yaml#/APIErrors"
|
||||
description: Method not allowed
|
||||
security:
|
||||
- cookieAuth: []
|
||||
summary: Change user password
|
||||
tags:
|
||||
- User
|
||||
current:
|
||||
get:
|
||||
description: Gets the current user
|
||||
|
||||
Reference in New Issue
Block a user