From 2bd24eb291ffb7a2c00ef1e0e9d95162ab8d20b3 Mon Sep 17 00:00:00 2001
From: kaiyou <pierre@jaury.eu>
Date: Fri, 25 Sep 2020 20:21:32 +0200
Subject: [PATCH] Fix some typos in applications

---
 hiboo/application/social.py  | 2 +-
 hiboo/application/storage.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hiboo/application/social.py b/hiboo/application/social.py
index f5aa0906..e891d604 100644
--- a/hiboo/application/social.py
+++ b/hiboo/application/social.py
@@ -19,7 +19,7 @@ class MastodonApplication(base.SAMLApplication):
         submit = fields.SubmitField(_('Submit'))
 
     def configure(self, form):
-        callback_uri = self.application_uri.data + "/auth/auth/callback"
+        callback_uri = form.application_uri.data + "/auth/auth/callback"
         return {
             "acs": callback_uri,
             "entityid": callback_uri,
diff --git a/hiboo/application/storage.py b/hiboo/application/storage.py
index 4142da98..dda4d381 100644
--- a/hiboo/application/storage.py
+++ b/hiboo/application/storage.py
@@ -4,7 +4,7 @@ from flask_babel import lazy_gettext as _
 
 
 @register("nextcloud")
-class SeafileApplication(base.SAMLApplication):
+class NextcloudApplication(base.SAMLApplication):
     """ NextCloud is a free alternative to many cloud vendors (storage, contacts, meetings, etc.)
     """
 
-- 
GitLab