How to send error messages to response

Hello,

I am trying to do a password reset function. Basically the user enters the password and reset code (secretToken). If the secretToken matches what is in xano, then it'll accept a password change.

The function stack I have is attached.

Currently if the user doesn't meet the password requirements (eg. only inputs a 3 character password), then it'll show up in the response. However if the secretToken doesn't match, then it doesn't show up in the response.

How can I get all error messages to show up in the response? There are 3 points of error:

  1. step 1 of function: the secretToken doesn't match what is in xano

  2. step 2 of function: secretToken is older than 1 hour

  3. step 3 of function: password entered doesn't meet password requirements

Not sure if that makes sense. Can provide more info as necessary. Thanks!

passwordrest.jpg
105.08KB

1 reply