File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 77 use Pdsinterop \PhpSolid \Session ;
88 use Pdsinterop \PhpSolid \Mailer ;
99 use Pdsinterop \PhpSolid \IpAttempts ;
10+ use Pdsinterop \PhpSolid \StorageServer ;
1011
1112 class Account {
1213 public static function requireLoggedInUser () {
@@ -87,11 +88,15 @@ public static function respondToAccountNew() {
8788 header ("HTTP/1.1 400 Bad Request " );
8889 exit ();
8990 }
91+ $ createdStorage = StorageServer::createStorage ($ createdUser ['webId ' ]);
92+
9093 Mailer::sendAccountCreated ($ createdUser );
9194
9295 $ responseData = array (
93- "webId " => $ createdUser ['webId ' ]
96+ "webId " => $ createdUser ['webId ' ],
97+ "storageUrl " => $ createdStorage ['storageUrl ' ]
9498 );
99+
95100 header ("HTTP/1.1 201 Created " );
96101 header ("Content-type: application/json " );
97102 Session::start ($ _POST ['email ' ]);
You can’t perform that action at this time.
0 commit comments