mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-22 14:19:28 +00:00
Update services for new in-model settings
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
from mumble.models import Mumble, MumbleUser
|
||||
from sso.services import BaseService
|
||||
|
||||
import settings
|
||||
|
||||
class MumbleService(BaseService):
|
||||
|
||||
settings = { 'require_user': True,
|
||||
'require_password': True,
|
||||
'provide_login': False,
|
||||
'use_corptag': True }
|
||||
'use_corptag': True,
|
||||
'mumble_server_id': 1 }
|
||||
|
||||
def _get_server(self):
|
||||
return Mumble.objects.get(id=settings.MUMBLE_SERVER_ID)
|
||||
return Mumble.objects.get(id=self.settings['mumble_server_id'])
|
||||
|
||||
def add_user(self, username, password, **kwargs):
|
||||
""" Add a user, returns a UID for that user """
|
||||
|
||||
Reference in New Issue
Block a user