@@ -64,9 +64,9 @@ discard block |
||
64 | 64 | $query = "INSERT INTO register VALUES(null, '$email', '$username', '$password')"; |
65 | 65 | if (!$this->connect->query($query)) { |
66 | 66 | return json_encode( |
67 | - [ |
|
68 | - "Error" => "You are not registered, ".$this->connect->error |
|
69 | - ] |
|
67 | + [ |
|
68 | + "Error" => "You are not registered, ".$this->connect->error |
|
69 | + ] |
|
70 | 70 | ); |
71 | 71 | } |
72 | 72 | $query = "SELECT id FROM register WHERE email = '$email'"; |
@@ -86,9 +86,9 @@ discard block |
||
86 | 86 | |
87 | 87 | Session::put('start', $userId); |
88 | 88 | return json_encode( |
89 | - [ |
|
89 | + [ |
|
90 | 90 | "location" => getenv('APP_URL')."/views/account.php" |
91 | - ] |
|
91 | + ] |
|
92 | 92 | ); |
93 | 93 | } |
94 | 94 | } |
@@ -9,11 +9,11 @@ |
||
9 | 9 | |
10 | 10 | $server = IoServer::factory( |
11 | 11 | new HttpServer( |
12 | - new WsServer( |
|
13 | - new Chat() |
|
14 | - ) |
|
15 | - ) |
|
16 | - , |
|
17 | - 8080 |
|
18 | - ); |
|
12 | + new WsServer( |
|
13 | + new Chat() |
|
14 | + ) |
|
15 | + ) |
|
16 | + , |
|
17 | + 8080 |
|
18 | + ); |
|
19 | 19 | $server->run(); |