diff --git a/auth/auth.py b/auth/auth.py index 9c4f8d1..2b80720 100644 --- a/auth/auth.py +++ b/auth/auth.py @@ -22,7 +22,13 @@ async def get_login_context(error: str | None = None) -> Dict[str, Union[str | bool]]: use_oauth = getattr(getattr(settings, 'OAUTH', None), 'IS_USED', False) only_oauth = getattr(getattr(settings, 'OAUTH', None), 'ONLY_OAUTH', False) - context = {'context': '', 'use_oauth': use_oauth, 'only_oauth': only_oauth} + oauth_sign_in_title = getattr(getattr(settings, 'OAUTH', None), 'SIGN_IN_TITLE', '') + context = { + 'context': '', + 'use_oauth': use_oauth, + 'only_oauth': only_oauth, + 'oauth_sign_in_title': oauth_sign_in_title, + } if error: context['error'] = error return context diff --git a/its_on/templates/users/login.html b/its_on/templates/users/login.html index d29fb28..8df268d 100644 --- a/its_on/templates/users/login.html +++ b/its_on/templates/users/login.html @@ -35,7 +35,7 @@

ITS ON

{%- endif -%} {%- if use_oauth -%}
- Sign in with "Bestdoctor ID" + {{ oauth_sign_in_title }}
{%- endif -%} {%- if error is defined -%} diff --git a/settings.yaml b/settings.yaml index 4dc0a2f..dc01c3c 100644 --- a/settings.yaml +++ b/settings.yaml @@ -11,6 +11,7 @@ default: client_secret: '@none' authorize_url: '@none' token_url: '@none' + sign_in_title: 'Sign in with "Bestdoctor ID"' enable_db_logging: false cache_url: redis://127.0.0.1:6379/1 cache_ttl: 300