From 0dee717c94468afeb139d9e8d9322b5fd26974b6 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Sat, 28 Aug 2021 00:07:23 +0200 Subject: Confirm mails only per POST - this is to avoid automatic confirmation by certain softwares that open links Signed-off-by: Arthur Schiwon --- apps/provisioning_api/appinfo/routes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/provisioning_api/appinfo') diff --git a/apps/provisioning_api/appinfo/routes.php b/apps/provisioning_api/appinfo/routes.php index 81a5bb94e02..54d550260b8 100644 --- a/apps/provisioning_api/appinfo/routes.php +++ b/apps/provisioning_api/appinfo/routes.php @@ -76,6 +76,7 @@ return [ ], 'routes' => [ // Verification - ['name' => 'Verification#verifyMail', 'url' => '/mailVerification/{key}/{token}/{userId}', 'verb' => 'GET'], + ['name' => 'Verification#showVerifyMail', 'url' => '/mailVerification/{key}/{token}/{userId}', 'verb' => 'GET'], + ['name' => 'Verification#verifyMail', 'url' => '/mailVerification/{key}/{token}/{userId}', 'verb' => 'POST'], ] ]; -- cgit v1.2.3