From 9d5c248000bc5573084cd55f024463d4bd903abf Mon Sep 17 00:00:00 2001 From: Arsalan Ul Haq Sohni Date: Tue, 23 Sep 2025 17:10:36 +0200 Subject: [PATCH 1/3] IONOS(ionos-mail): stub for new email creation form Signed-off-by: Arsalan Ul Haq Sohni --- appinfo/routes.php | 5 + lib/Controller/IonosAccountsController.php | 63 +++++++ src/components/AccountForm.vue | 7 + src/components/ionos/NewEmailAddressTab.vue | 176 ++++++++++++++++++++ 4 files changed, 251 insertions(+) create mode 100644 lib/Controller/IonosAccountsController.php create mode 100644 src/components/ionos/NewEmailAddressTab.vue diff --git a/appinfo/routes.php b/appinfo/routes.php index 506ed181f8..c62dc954c8 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -120,6 +120,11 @@ 'url' => '/api/tags', 'verb' => 'POST' ], + [ + 'name' => 'ionosAccounts#create', + 'url' => '/api/ionos/accounts', + 'verb' => 'POST' + ], [ 'name' => 'tags#update', 'url' => '/api/tags/{id}', diff --git a/lib/Controller/IonosAccountsController.php b/lib/Controller/IonosAccountsController.php new file mode 100644 index 0000000000..9a824e3266 --- /dev/null +++ b/lib/Controller/IonosAccountsController.php @@ -0,0 +1,63 @@ + 'error', + 'message' => 'All fields are required', + ], 400); + } + + // Simple stub implementation + if ($password === '1111') { + return new JSONResponse([ + 'status' => 'success', + 'message' => 'Account created successfully', + ]); + } else { + return new JSONResponse([ + 'status' => 'error', + 'message' => 'Invalid password. Use "1111" for testing.' + ], 400); + } + } +} diff --git a/src/components/AccountForm.vue b/src/components/AccountForm.vue index f3cc2263d9..f5a775eb49 100644 --- a/src/components/AccountForm.vue +++ b/src/components/AccountForm.vue @@ -199,6 +199,11 @@ required @change="clearFeedback" /> + + +