How to prevent duplicate username or userno when people in signup page?
Application Type

How to prevent duplicate username or username when people in signup page?

I tried with some logic but it didn't work for me.

Please help out from the question, with better solution.

Thank you


I think this post can answer you

But, what you can do is, when you are doing the signup, on the same server action to do the signup, you create and call another server action(action x) that will check if the username was already used, how you can do that? On the server action x, you use an aggregate that will filter with the username provided by an input parameter and there will be an output saying if the list is empty or not. If is empty which means the username that is being used to do signup is an original one.

Kind Regards,


Thanks for your support

Márcio Carvalho

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.