mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-13 21:17:33 +00:00
Add 2fa_urls
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
"""InvenTree API version information."""
|
||||
|
||||
# InvenTree API version
|
||||
INVENTREE_API_VERSION = 205
|
||||
INVENTREE_API_VERSION = 206
|
||||
|
||||
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||
|
||||
INVENTREE_API_TEXT = """
|
||||
v206 - 2024-06-04 : ###
|
||||
- Added 2fa urls to the SSO provider API endpoint
|
||||
|
||||
v205 - 2024-06-03 : https://github.com/inventree/InvenTree/pull/7284
|
||||
- Added model_type and model_id fields to the "NotesImage" serializer
|
||||
|
||||
|
||||
@@ -183,6 +183,12 @@ class SocialProviderListView(ListAPI):
|
||||
'password_forgotten_enabled': InvenTreeSetting.get_setting(
|
||||
'LOGIN_ENABLE_PWD_FORGOT'
|
||||
),
|
||||
'2fa_urls': {
|
||||
'setup': request.build_absolute_uri('two-factor-setup'),
|
||||
'authenticate': request.build_absolute_uri('two-factor-authenticate'),
|
||||
'backup_tokens': request.build_absolute_uri('two-factor-backup-tokens'),
|
||||
'remove': request.build_absolute_uri('two-factor-remove'),
|
||||
},
|
||||
}
|
||||
return Response(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user