|
@ -72,7 +72,11 @@ export default function PasswordRecovery({ navigation }) { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
const handleSubmit = async (number, answer, secQuestion) => { |
|
|
const handleSubmit = async (number, answer, secQuestion) => { |
|
|
const apiResponse = await loginByUsernamAnswers(number, secQuestion, answer); |
|
|
|
|
|
|
|
|
setConfirmatioModalData({ |
|
|
|
|
|
message: "Validando informações", |
|
|
|
|
|
show: true, |
|
|
|
|
|
}); |
|
|
|
|
|
const apiResponse = await loginByUsernamAnswers(number, secQuestion, answer); |
|
|
|
|
|
|
|
|
switch (apiResponse.status) { |
|
|
switch (apiResponse.status) { |
|
|
case 200: |
|
|
case 200: |
|
|