Forgot Password

Get Security Questions Endpoint

Get's all the security questions from the config.yml

Untitled

(1) Gets all the security questions from the config file

(2) If the security questions can't be parsed it returns a error message

(3) If they are succesfully parsed it sends a list of questions and a succesful status

Example Request

url: "<http://localhost:8000/getSecurityQuestions>"
headers: {
    "Content-Type":"application/json",
}

Security Question For User Endpoint

Gets the associated security question for a registered user

Untitled

(1) Checks that the user's email is in the body

(2) Finds the user in thhe database, and either returns that the user is not registered or the assocaited security question with their account

Example Request

url: "<http://localhost:8000/securityQuestionsForUser>"
headers: {
    "Content-Type":"application/json",
}
body: {
    "email":"[email protected]"
}

Forgot Password Endpoint

If you have a security question, it verifies your answer. If gmail is enabled, it then sends a pin to your email.