Server catch usage

I see what you are doing now, and no I don’t believe you can make that work.

Catch is for unexpected error conditions, and a failed login is an expected condition, just an unauthorized response.

What you can do, is do a single query of the user, before the login action and just lookup a user with conditions for username and password set. If you get a user, then do login action, if not, send mail.

1 Like

Thanks Ken. I’ve now done that and it’s working fine.

Would be good for the catch feature to work in scenarios like this, though.

2 Likes

Can you post or PM me a screenshot of your SC?

Hi Brad. No problem, here’s my SC. The query simply gets a single record if the username and password match what is posted.

Fixed in Wappler 3.5.1

This topic was automatically closed after 27 hours. New replies are no longer allowed.