From 6bfa2b8b47f4eadb5159002450eef2ed60a27ced Mon Sep 17 00:00:00 2001
From: Frederick Muriuki Muriithi
Date: Mon, 3 Feb 2025 13:47:29 -0600
Subject: Make sign in/out terminology consistent with GN2.
---
uploader/authorisation.py | 2 +-
uploader/oauth2/views.py | 2 +-
uploader/templates/base.html | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/uploader/authorisation.py b/uploader/authorisation.py
index bd3454c..a283980 100644
--- a/uploader/authorisation.py
+++ b/uploader/authorisation.py
@@ -18,7 +18,7 @@ def require_login(function):
"""Check that the user is logged in and their token is valid."""
def __clear_session__(_no_token):
session.clear_session_info()
- flash("You need to be logged in.", "alert-danger big-alert")
+ flash("You need to be signed in.", "alert-danger big-alert")
return redirect("/")
return session.user_token().either(
diff --git a/uploader/oauth2/views.py b/uploader/oauth2/views.py
index 61037f3..a7211cb 100644
--- a/uploader/oauth2/views.py
+++ b/uploader/oauth2/views.py
@@ -116,7 +116,7 @@ def logout():
_user = session_info["user"]
_user_str = f"{_user['name']} ({_user['email']})"
session.clear_session_info()
- flash("Successfully logged out.", "alert-success")
+ flash("Successfully signed out.", "alert-success")
return redirect("/")
if user_logged_in():
diff --git a/uploader/templates/base.html b/uploader/templates/base.html
index a08c3e5..9cd4cee 100644
--- a/uploader/templates/base.html
+++ b/uploader/templates/base.html
@@ -32,10 +32,10 @@
- Log Out
+ Sign Out
{%else%}
Log In
+ title="Log in to the system">Sign In
{%endif%}
--
cgit v1.2.3