BindMails registers $mail.* namespaced object with common mail related helpers. See https://pocketbase.io/jsvm/modules/_mails.html.
(vm *goja.Runtime)
| 693 | // |
| 694 | // See https://pocketbase.io/jsvm/modules/_mails.html. |
| 695 | func BindMails(vm *goja.Runtime) { |
| 696 | obj := vm.NewObject() |
| 697 | vm.Set("$mails", obj) |
| 698 | |
| 699 | obj.Set("sendRecordPasswordReset", mails.SendRecordPasswordReset) |
| 700 | obj.Set("sendRecordVerification", mails.SendRecordVerification) |
| 701 | obj.Set("sendRecordChangeEmail", mails.SendRecordChangeEmail) |
| 702 | obj.Set("sendRecordOTP", mails.SendRecordOTP) |
| 703 | obj.Set("sendRecordAuthAlert", mails.SendRecordAuthAlert) |
| 704 | } |
| 705 | |
| 706 | // BindSecurity registers $security.* namespaced object with common security related helpers. |
| 707 | // |
searching dependent graphs…