I need one help as I have confusion in one condition let's user register and enroll to the network and it's secret which is generate at time of registration saved in mongodb but somehow it's wallet got deleted so we need to register the user again or we can get wallet again just enroll user again with same secret?
Yes, you can enroll the Identity again using the same secret. Assuming that the max number of enrollments has not been exceeded - but the default is "-1" (unlimited).
FYI each time you enroll you get different credentials, but they are valid for the same Identity.