2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 11:40:58 +00:00

[SSO] Separate settings for local and social signup (#4171)

* [SSO] Separate settings for local and social signup
Fixes #4166

* make registration setting configruable

* extend docstring

* add setting to settigns screen

* update check ref

* both settign most be checked
This commit is contained in:
Matthias Mair
2023-01-09 14:20:05 +01:00
committed by GitHub
parent 0ed2aa3a4d
commit ac92471dcb
4 changed files with 17 additions and 5 deletions

View File

@ -1375,6 +1375,13 @@ class InvenTreeSetting(BaseInvenTreeSetting):
'validator': bool,
},
'LOGIN_ENABLE_SSO_REG': {
'name': _('Enable SSO registration'),
'description': _('Enable self-registration via SSO for users on the login pages'),
'default': False,
'validator': bool,
},
'LOGIN_MAIL_REQUIRED': {
'name': _('Email required'),
'description': _('Require user to supply mail on signup'),