mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix edit settings test
This commit is contained in:
parent
026ad817bc
commit
29704e2f26
@ -23,13 +23,12 @@ Authorization: Bearer {{jwt}}
|
||||
}
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
jsonpath ".claims.preferOriginal" == true
|
||||
jsonpath ".username" == "edit-settings"
|
||||
jsonpath "$.claims.preferOriginal" == true
|
||||
jsonpath "$.username" == "edit-settings"
|
||||
|
||||
# Invalid password login
|
||||
POST {{host}}/jwt
|
||||
GET {{host}}/jwt
|
||||
Authorization: Bearer {{token}}
|
||||
HTTP 403
|
||||
HTTP 200
|
||||
|
||||
DELETE {{host}}/users/me
|
||||
Authorization: Bearer {{jwt}}
|
||||
|
@ -53,8 +53,8 @@ type RegisterDto struct {
|
||||
}
|
||||
|
||||
type EditUserDto struct {
|
||||
Username *string `json:"username,omitempty" validate:"excludes=@" example:"zoriya"`
|
||||
Email *string `json:"email,omitempty" validate:"email" example:"kyoo@zoriya.dev"`
|
||||
Username *string `json:"username,omitempty" validate:"omitnil,excludes=@" example:"zoriya"`
|
||||
Email *string `json:"email,omitempty" validate:"omitnil,email" example:"kyoo@zoriya.dev"`
|
||||
Claims jwt.MapClaims `json:"claims,omitempty" example:"preferOriginal: true"`
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user