@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | use Core\Container; |
8 | 8 | use Core\Traits\StringFunctions; |
9 | 9 | |
10 | -class User extends AjaxController{ |
|
10 | +class User extends AjaxController { |
|
11 | 11 | |
12 | 12 | use StringFunctions; |
13 | 13 | |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | //the router needs a parameter with get functions else throsw a wobbly |
25 | 25 | //we pass a get variable and call the /controller/function/get?bla |
26 | 26 | //for better use and security, we must pass "get" as the parameter |
27 | - if(!$this->startsWith(strtolower($get),"get")) |
|
27 | + if (!$this->startsWith(strtolower($get), "get")) |
|
28 | 28 | { |
29 | 29 | throw new \Exception("invalid call"); |
30 | 30 | } |
31 | 31 | $email = $this->request->getData("email"); |
32 | - $return = !$this->userModel->isEmailUsed($email); |
|
32 | + $return = !$this->userModel->isEmailUsed($email); |
|
33 | 33 | echo json_encode($return); |
34 | 34 | |
35 | 35 | } |