So I am building a login function stack, what I want to do is to make it in one call. like below;
I found if we had an 'IF, if else, else
'statement it would be much easier to work in Xano,
Currently, I have to do it with ' IF, Else '
which is becoming lengthy and tedious.
Check if the user state is REGISTER,
check the record for the user and check
check password matches with the repeat password.
if: user recode = false & password match = true
create user
create token
return
else :
if user recode = false & password match = false
return ' password not match'
else:
if user recode = true & password match = true.
check user.password = password ( input by user)
if the above check is true.
create token
retuen
else
return ( user exist but pass not macth with user)
Else:
this is the login flow
*************************************