Browse Source

Improving ForgotPwd structure

main
ddangelorb 3 years ago
parent
commit
2eb24c62c8
  1. 2
      index.html
  2. 2
      src/main/java/org/waterproofingdata/wpdauth/controller/ForgotPasswordsController.java
  3. 10
      swagger.yaml

2
index.html

@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- V1.0.3.0-->
<!-- V1.0.3.0.0-->
<html lang="en">
<head>

2
src/main/java/org/waterproofingdata/wpdauth/controller/ForgotPasswordsController.java

@ -91,7 +91,7 @@ public class ForgotPasswordsController {
@ApiResponse(code = 422, message = "Invalid answers supplied to login. Must have at least 2 correct ones.")})
public String loginbyemailandanswers(//
@ApiParam("Email") @RequestParam String email, //
@ApiParam("Answers") @RequestParam List<ForgotPasswordsQuestionsUsersAnswersRequestDTO> answers) {
@ApiParam("Answers") @RequestBody List<ForgotPasswordsQuestionsUsersAnswersRequestDTO> answers) {
return forgotPasswordsService.loginByEmailAndAnswers(email, CustomMapper.mapAll(answers, ForgotPasswordsQuestionsUsersAnswers.class));
}
}

10
swagger.yaml

@ -48,12 +48,14 @@ paths:
produces:
- '*/*'
parameters:
- name: answers
in: query
- in: body
name: answers
description: Answers
required: false
type: string
allowEmptyValue: false
schema:
type: array
items:
$ref: '#/definitions/ForgotPasswordsQuestionsUsersAnswersRequestDTO'
- name: email
in: query
description: Email

Loading…
Cancel
Save