Lines 116-118
Link Here
|
116 |
x-koha-authorization: |
116 |
x-koha-authorization: |
117 |
permissions: |
117 |
permissions: |
118 |
superlibrarian: "1" |
118 |
superlibrarian: "1" |
|
|
119 |
"/patrons/{patron_id}/check_password": |
120 |
post: |
121 |
x-mojo-to: Patrons::Password#check_password |
122 |
operationId: checkPatronPassword |
123 |
tags: |
124 |
- patrons |
125 |
summary: Check password for a patron |
126 |
parameters: |
127 |
- $ref: ../swagger.yaml#/parameters/patron_id_pp |
128 |
- name: body |
129 |
in: body |
130 |
description: A JSON object containing password information |
131 |
schema: |
132 |
type: object |
133 |
properties: |
134 |
password: |
135 |
description: Password (plain text) |
136 |
type: string |
137 |
required: |
138 |
- password |
139 |
additionalProperties: false |
140 |
produces: |
141 |
- application/json |
142 |
responses: |
143 |
"200": |
144 |
description: Check password succeeded |
145 |
"400": |
146 |
description: Bad request |
147 |
schema: |
148 |
$ref: ../swagger.yaml#/definitions/error |
149 |
"401": |
150 |
description: Authentication required |
151 |
schema: |
152 |
$ref: ../swagger.yaml#/definitions/error |
153 |
"403": |
154 |
description: Access forbidden |
155 |
schema: |
156 |
$ref: ../swagger.yaml#/definitions/error |
157 |
"404": |
158 |
description: Patron not found |
159 |
schema: |
160 |
$ref: ../swagger.yaml#/definitions/error |
161 |
"500": |
162 |
description: | |
163 |
Internal server error. Possible `error_code` attribute values: |
164 |
|
165 |
* `internal_server_error` |
166 |
schema: |
167 |
$ref: ../swagger.yaml#/definitions/error |
168 |
"503": |
169 |
description: Under maintenance |
170 |
schema: |
171 |
$ref: ../swagger.yaml#/definitions/error |
172 |
x-koha-authorization: |
173 |
permissions: |
174 |
borrowers: "1" |