Resend EnrollmentEmail

I have an application where the users are enrolled into the system. so the users get an enrollment email with a link to create password. But if for any reason the user loses the enrollment email there is no way for them to resent.

When i try resend verification email link it just verifies the user but does not let them create a password. I am wondering if there is workaround for it.

Any thoughts on how to send the enrollment email instead of verification email if the user has no password?

regards
Addy

I was able to override the ‘ATResendVerificationEmail’ method on the server to address this:

Meteor.default_server
.method_handlers.ATResendVerificationEmail = function …

    if (user.services.password.brcypt) {
      Accounts.sendVerificationEmail(user._id);
    } else {
      Accounts.sendEnrollmentEmail(user._id);
    }