We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 144de96 commit 82fff92Copy full SHA for 82fff92
1 file changed
lib/Routes/Account.php
@@ -7,6 +7,7 @@
7
use Pdsinterop\PhpSolid\Session;
8
use Pdsinterop\PhpSolid\Mailer;
9
use Pdsinterop\PhpSolid\IpAttempts;
10
+ use Pdsinterop\PhpSolid\StorageServer;
11
12
class Account {
13
public static function requireLoggedInUser() {
@@ -87,11 +88,15 @@ public static function respondToAccountNew() {
87
88
header("HTTP/1.1 400 Bad Request");
89
exit();
90
}
91
+ $createdStorage = StorageServer::createStorage($createdUser['webId']);
92
+
93
Mailer::sendAccountCreated($createdUser);
94
95
$responseData = array(
- "webId" => $createdUser['webId']
96
+ "webId" => $createdUser['webId'],
97
+ "storageUrl" => $createdStorage['storageUrl']
98
);
99
100
header("HTTP/1.1 201 Created");
101
header("Content-type: application/json");
102
Session::start($_POST['email']);
0 commit comments