Forum Academy Marketplace Showcase Pricing Features

Unique Username workflow


I’m trying to set up the following steps:

  1. User searches for unique name
  2. If it is available, the name is sato the to database and
  3. Direct the user to create an account.

I did the following: I did a search on the current database to check if the user name is not already taken, setup a slug and signed up the user.

I’m having problems getting all the steps working correctly. I’m able to save the user with a unique name, but it allows the new user to sign up even if the user name already exists

Any help would be appreciated. Thank you in advance.