Prevent creating role customer while sign-in after signup


I have custom signup page which has two different role field. Supplier and Customer.
If I signup as Supplier and then sign-in a row has been created in the customer table for the supplier.
How can we stop that? I mean the file I have to edit. I searched but I couldn’t find out the function in login.js, etc.

anyone know which function is creating customers for all who signup through website?

In the latest develop, this is done via hooks

If the user signing up has a Customer Contact it becomes a Customer and similarly for Supplier.

hi @rmehta Thanks for the reply.

I am using V6. Could you please tell me the same in V6?