methods to resend email from identity

This commit is contained in:
Ivan Socolsky 2014-12-18 15:50:42 -03:00
commit b0c31b37c3
5 changed files with 42 additions and 3 deletions

View file

@ -105,6 +105,15 @@ Identity.create = function(opts, cb) {
});
};
Identity.prototype.resendVerificationEmail = function (cb) {
var self = this;
preconditions.checkArgument(_.isFunction(cb));
preconditions.checkState(_.isFunction(self.storage.resendVerificationEmail));
self.storage.resendVerificationEmail(cb);
};
/**
* Open an Identity from the given storage.