Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/Routes/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public static function respondToAccountNew() {
exit();
}
$createdStorage = StorageServer::createStorage($createdUser['webId']);
User::setStorage($createdUser['userId'], $createdStorage['storageUrl']);

Mailer::sendAccountCreated($createdUser);

Expand Down
2 changes: 1 addition & 1 deletion lib/Routes/SolidStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function respondToStorage() {

// FIXME: Read allowed clients from the profile instead;

$ownerWebId = StorageServer::getOwnerWebId();
$ownerWebId = StorageServer::getOwnerWebId();
$owner = User::getUserByWebId($ownerWebId);

$allowedClients = $owner['allowedClients'] ?? [];
Expand Down
6 changes: 1 addition & 5 deletions lib/Routes/SolidStorageProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@ public static function respondToStorageNew() {
exit();
}

//Mailer::sendStorageCreated($createdStoage);

$storageUrl = "https://storage-" . $createdStorage['storageId'] . "." . BASEDOMAIN . "/";

$responseData = array(
"storage" => $storageUrl
"storage" => $createdStorage['storageUrl']
);
header("HTTP/1.1 201 Created");
header("Content-type: application/json");
Expand Down
3 changes: 2 additions & 1 deletion lib/StorageServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public static function createStorage($ownerWebId) {
':owner' => $ownerWebId
]);
return [
"storageId" => $generatedStorageId
"storageId" => $generatedStorageId,
"storageUrl" => "https://storage-" . $generatedStorageId . "." . BASEDOMAIN . "/"
];
}

Expand Down
Loading