From f9e0a85cc4e90503a575b5a410379f802302746f Mon Sep 17 00:00:00 2001
From: Anna Dabrowska <dabrowska@cosmocode.de>
Date: Tue, 4 Jan 2022 10:34:44 +0100
Subject: [PATCH] Correct type of authorization method

Fixes #1
---
 Generic.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Generic.php b/Generic.php
index 8250260..706bdda 100644
--- a/Generic.php
+++ b/Generic.php
@@ -32,6 +32,6 @@ class Generic extends AbstractOAuth2Base
     {
         $plugin = plugin_load('helper', 'oauthgeneric');
 
-        return $plugin->getConf('authmethod');
+        return (int) $plugin->getConf('authmethod');
     }
 }
-- 
GitLab