I am trying to register users only with email id. So when ever I enter email id and click on register then password should generate automatically and email should send to the particular email address. When he first time logins with that email id and password then we need to show the change password and security question and answer option. There is an option for auto generate password in create user wizard. For this i followed this link. But I am unable to solve the issue to show the first time login user to reset his password and set the security question and answer. Can any one give me the solution!!
I am trying to register users only with email id. So when ever I
Share
You have to keep track of that in your database. You can have
bittype field in the database for exampleIsFirstTimeLoginand set ittruefor the first usage and after successful login set it tofalse. You can also setup a field to specify if the user required to change password. If that field is set to true then you can ask the user to change the password. You can use the required password change field for period changes to the password in future as well.As far as auto generating the password in concerned you can use the email id as the first password, but if you want some more secure option then you can issue any randomly generated password to the user, or you can use
GetHashCodefor password generations. Something like:You can only try to make your password as much random as possible, You can look at this question for generating random strings.