diff options
author | Frederick Muriuki Muriithi | 2025-02-03 13:47:29 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-02-03 13:47:29 -0600 |
commit | 6bfa2b8b47f4eadb5159002450eef2ed60a27ced (patch) | |
tree | b0957ee4ed159728d6e19a3770ca7b8d15a6bfc8 /uploader | |
parent | 14ccf06f59962a26898381acbec69e41be059bfd (diff) | |
download | gn-uploader-6bfa2b8b47f4eadb5159002450eef2ed60a27ced.tar.gz |
Make sign in/out terminology consistent with GN2.
Diffstat (limited to 'uploader')
-rw-r--r-- | uploader/authorisation.py | 2 | ||||
-rw-r--r-- | uploader/oauth2/views.py | 2 | ||||
-rw-r--r-- | 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 @@ <a href="{{url_for('oauth2.logout')}}" title="Log out of the system"> <span class="glyphicon glyphicon-user"></span> - Log Out</a> + Sign Out</a> {%else%} <a href="{{authserver_authorise_uri()}}" - title="Log in to the system">Log In</a> + title="Log in to the system">Sign In</a> {%endif%} </li> </ul> |