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:
Gabe Ruttner
2024-04-02 09:50:20 -07:00
committed by GitHub
parent 066b3c5b71
commit 0da379e423
26 changed files with 1240 additions and 145 deletions
@@ -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