In registration page, have dynamic steps for Wizard based of step's afterValidation
* If @domain.com is domain of an existing tenant, add the user to that
* Else send user to a "step 2" in the registration with 2 fields: Company / Team-name and Domain-name to set up a new Tenant.
I have tried
skippable()
but that only provides option to switch between steps.
Thanks in advance.Solution:Jump to solution
Personally, I would not make it a Wizard, but rather a set of hidden/visible fields based on the domain. Unless that Company Registration is a huge form.
5 Replies
Solution
Personally, I would not make it a Wizard, but rather a set of hidden/visible fields based on the domain. Unless that Company Registration is a huge form.
From the email, I have to fetch the domain if the company exists with us. Thanks Povilas, I will try this approach of show/hide tonight.
Thanks @PovilasKorop , I have sent this for review. Let's hope it get's clear.
I will mark this as solved. Thanks again.
I have also highlighted the security risk that people/hackers will figure out all the domains that are with us.
@Jigar D very elegantly solved, congrats!
With security risk, yes it's implied with the logic that you chose for this. Another approach would be to send invites personally for registration from that specific company domain. And more approaches exist, I'm sure.