Forum Academy Marketplace Showcase Pricing Features

Can I use workflow to determine if it's a new or existing user?

I’m trying to do the following:

If user’s email address is already in the database then log them in.
If user’s email address is not in the database then sign them up.

But when I try to run the app I get an error message.
Am I doing something wrong?

This is the message I get:

And this is my workflow:

If Search for Users:count is 1 then I log them in.

Generally speaking, if you see such a message, email us at [email protected] with a way to reproduce the bug (that message means there is a code bug we need to fix :stuck_out_tongue: )

I thought there might be something wrong with my idea of using this workflow.
Email sent.

Might be something wrong with your idea (not sure yet to be honest) but what’s certain is that this message means we need to fix something, no matter how bad or good your idea is :smile:

Will look into it

1 Like

Regarding your workflow, you don’t need to do such a check, the sign up action does it (but i’m still looking at the issue)

The problem I had is that if it was an existing user than the app gave a message saying “this email is already registered”.
It logged in the user but I wanted to get rid of that message.

I’d say it’s better to show a message, but if you don’t want to, then that’s the right approach

1 Like