From 3715bd3b93648261e3f63f62d69a2adb16a09d8c Mon Sep 17 00:00:00 2001
From: Ferenc Schulcz <schulcz.ferenc@gmail.com>
Date: Fri, 11 Oct 2024 18:03:31 +0200
Subject: [PATCH] Adapt to new registration scheme

---
 profile.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/profile.py b/profile.py
index 1e441fb..3b3d486 100644
--- a/profile.py
+++ b/profile.py
@@ -7,10 +7,9 @@ import os
 plugin_dir = os.path.dirname(__file__) # parent folder name of the absolute path of this file
 
 
-def register(add_endpoint, add_postable_endpoint, add_menu):
-    add_endpoint('profile', profile)
-    add_menu('profile', 'Profile', 'profile')
-    add_postable_endpoint('password_change', pwchange)
+def register(add_endpoint):
+    add_endpoint(endpoint_id='profile', handler=profile, permission_name='profile', menutext='Profile')
+    add_endpoint(endpoint_id='password_change', handler=pwchange, permission_name='profile', method='POST')
 
 
 def collect_users(username):
-- 
GitLab