Merge pull request #219 from dougtoppin/fix-verify-confirm
Fix verify confirm
This commit is contained in:
commit
51d3ff892a
|
@ -90,6 +90,12 @@ var options = {
|
|||
principalId: Role.OWNER,
|
||||
permission: ACL.ALLOW,
|
||||
property: "updateAttributes"
|
||||
},
|
||||
{
|
||||
principalType: ACL.ROLE,
|
||||
principalId: Role.EVERYONE,
|
||||
permission: ACL.ALLOW,
|
||||
property: "confirm"
|
||||
}
|
||||
],
|
||||
relations: {
|
||||
|
@ -306,6 +312,7 @@ User.prototype.verify = function (options, fn) {
|
|||
var template = loopback.template(options.template);
|
||||
Email.send({
|
||||
to: options.to || user.email,
|
||||
from: options.from,
|
||||
subject: options.subject || 'Thanks for Registering',
|
||||
text: options.text,
|
||||
html: template(options)
|
||||
|
|
Loading…
Reference in New Issue