deitch / activator

Easy user activation and password reset, with email confirmation, for nodejs
85 stars 42 forks source link

Feature to resend the activation link #36

Open wassimz opened 8 years ago

wassimz commented 8 years ago

Hi,

Currently if the user miss the email or he loses it, I don't see any mechanism to resend a new activation code. Currently I am using the generation activation email after the user creation task. So if I try to recall the same API, the account user is already created. But I think that the resend should be in separate method call

What do you think ??

deitch commented 8 years ago

Why wouldn't you just call createActivate() again? All it does is find the user, create a link, and send it. It will create a new link this time, but that is fine.

In theory, you could separate it, but then you would need to get the user from the database anyways, might as well just keep it clean.