Total Complexity | 6 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class AuthController extends \Baka\Auth\AuthController |
||
17 | { |
||
18 | /** |
||
19 | * Setup for this controller |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | public function onConstruct() |
||
24 | { |
||
25 | $this->userLinkedSourcesModel = new UserLinkedSources(); |
||
26 | $this->userModel = new Users(); |
||
27 | |||
28 | if (!isset($this->config->jwt)) { |
||
29 | throw new ServerErrorHttpException('You need to configure your app JWT'); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Set the email config array we are going to be sending |
||
35 | * |
||
36 | * @param String $emailAction |
||
37 | * @param Users $user |
||
38 | */ |
||
39 | protected function sendEmail(BakaUsers $user, string $type): void |
||
70 | } |
||
71 | } |
||
73 |