From cb26a28ff82f2e6f368688ff8211e503281d95db Mon Sep 17 00:00:00 2001
From: or-else <or.else@gmail.com>
Date: Wed, 2 Aug 2023 11:16:41 +0300
Subject: [PATCH] fix: incorrectly ignored logical auth handler when deleting
 account

---
 server/user.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/user.go b/server/user.go
index 557d1a03..57ab6d5e 100644
--- a/server/user.go
+++ b/server/user.go
@@ -622,7 +622,7 @@ func replyDelUser(s *Session, msg *ClientComMessage) {
 	// Disable all authenticators
 	authnames := store.Store.GetAuthNames()
 	for _, name := range authnames {
-		hdl := store.Store.GetAuthHandler(name)
+		hdl := store.Store.GetLogicalAuthHandler(name)
 		if !hdl.IsInitialized() {
 			continue
 		}
-- 
GitLab