@@ -183,6 +183,7 @@ headers api_key input box.
183183 . Produces < TokenResult > ( )
184184 . ProducesProblem ( StatusCodes . Status400BadRequest )
185185 . WithSummary ( "Removes an external login provider from the account" )
186+ . ProducesProblem ( StatusCodes . Status409Conflict )
186187 . WithMetadata ( new EndpointDocumentation {
187188 RequestBodyDescription = "The provider user id." ,
188189 ParameterDescriptions = new ( ) {
@@ -191,6 +192,7 @@ headers api_key input box.
191192 ResponseDescriptions = new ( ) {
192193 [ "200" ] = "User Authentication Token" ,
193194 [ "400" ] = "Invalid provider name." ,
195+ [ "409" ] = "The account changed while the request was being processed." ,
194196 }
195197 } ) ;
196198
@@ -202,9 +204,11 @@ headers api_key input box.
202204 . Produces < TokenResult > ( )
203205 . ProducesProblem ( StatusCodes . Status422UnprocessableEntity )
204206 . WithSummary ( "Change password" )
207+ . ProducesProblem ( StatusCodes . Status409Conflict )
205208 . WithMetadata ( new EndpointDocumentation {
206209 ResponseDescriptions = new ( ) {
207210 [ "200" ] = "User Authentication Token" ,
211+ [ "409" ] = "The account changed while the request was being processed." ,
208212 [ "422" ] = "Validation error" ,
209213 }
210214 } ) ;
@@ -220,13 +224,15 @@ headers api_key input box.
220224 . Produces ( StatusCodes . Status200OK )
221225 . ProducesProblem ( StatusCodes . Status400BadRequest )
222226 . WithSummary ( "Forgot password" )
227+ . ProducesProblem ( StatusCodes . Status409Conflict )
223228 . WithMetadata ( new EndpointDocumentation {
224229 ParameterDescriptions = new ( ) {
225230 [ "email" ] = "The email address." ,
226231 } ,
227232 ResponseDescriptions = new ( ) {
228233 [ "200" ] = "Forgot password email was sent." ,
229234 [ "400" ] = "Invalid email address." ,
235+ [ "409" ] = "The account changed while the request was being processed." ,
230236 }
231237 } ) ;
232238
@@ -239,9 +245,11 @@ headers api_key input box.
239245 . Produces ( StatusCodes . Status200OK )
240246 . ProducesProblem ( StatusCodes . Status422UnprocessableEntity )
241247 . WithSummary ( "Reset password" )
248+ . ProducesProblem ( StatusCodes . Status409Conflict )
242249 . WithMetadata ( new EndpointDocumentation {
243250 ResponseDescriptions = new ( ) {
244251 [ "200" ] = "Password reset email was sent." ,
252+ [ "409" ] = "The account changed while the request was being processed." ,
245253 [ "422" ] = "Invalid reset password model." ,
246254 }
247255 } ) ;
@@ -258,13 +266,15 @@ headers api_key input box.
258266 . Produces ( StatusCodes . Status200OK )
259267 . ProducesProblem ( StatusCodes . Status400BadRequest )
260268 . WithSummary ( "Cancel reset password" )
269+ . ProducesProblem ( StatusCodes . Status409Conflict )
261270 . WithMetadata ( new EndpointDocumentation {
262271 ParameterDescriptions = new ( ) {
263272 [ "token" ] = "The password reset token." ,
264273 } ,
265274 ResponseDescriptions = new ( ) {
266275 [ "200" ] = "Password reset email was cancelled." ,
267276 [ "400" ] = "Invalid password reset token." ,
277+ [ "409" ] = "The account changed while the request was being processed." ,
268278 }
269279 } ) ;
270280
0 commit comments