mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-22 14:19:28 +00:00
Various changes to several aspects of the model base.
* Added SSOUser extension profile for auth * Now checks for Corp membership and executes required commands * Various small fixups
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
|
||||
def get_api(api):
|
||||
try:
|
||||
mod = __import__(self.service.api)
|
||||
mod = __import__(api)
|
||||
except ImportError:
|
||||
raise DoesNotExist('Error creating service')
|
||||
|
||||
for i in self.service.api.spit(".")[1:]:
|
||||
for i in api.split(".")[1:]:
|
||||
mod = getattr(mod, i)
|
||||
|
||||
return getattr(mod, mod.ServiceClass)()
|
||||
@@ -33,7 +33,7 @@ class BaseService():
|
||||
""" Disable a user """
|
||||
pass
|
||||
|
||||
def enable_user(self, username):
|
||||
def enable_user(self, username, password):
|
||||
""" Enable a user """
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user