| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function make() |
||
| 57 | { |
||
| 58 | $token = $this->makeInvite(); |
||
| 59 | // save data in database |
||
| 60 | $invObj = new Invite(); |
||
| 61 | $invObj->email = $this->email; |
||
| 62 | $invObj->token = $token; |
||
| 63 | $invObj->save(); |
||
| 64 | |||
| 65 | if (App::$Mailer) { |
||
| 66 | return App::$Mailer->tpl('user/_mail/invite', [ |
||
| 67 | 'invite' => $token, |
||
| 68 | 'email' => $this->email |
||
| 69 | ])->send($this->email, App::$Translate->get('Default', __('You got registration invite'), [])); |
||
| 70 | } |
||
| 71 | |||
| 72 | return false; |
||
| 73 | } |
||
| 87 |