h
This commit is contained in:
1 parent
96fba20b0c
commit
63d0cbfc13
3 files changed
+5
-5
No files matched your search
@@ -12,7 +12,7 @@ from rest_framework_simplejwt.views import TokenObtainPairView
|
||||
|
||||
from django.contrib.auth import get_user_model
|
||||
User = get_user_model()
|
||||
|
||||
myDEBUG=True
|
||||
class MyTokenObtainPairSerializer(TokenObtainPairSerializer):
|
||||
@classmethod
|
||||
def get_token(cls, user):
|
||||
@@ -42,7 +42,7 @@ class CustomAuth(ModelBackend):
|
||||
password = kwargs['password']
|
||||
status_code=0
|
||||
# !ТУт стучим в AD, потом к Алексею
|
||||
if settings.myDEBUG!=True:
|
||||
if myDEBUG!=True:
|
||||
resp= requests.post('http://10.252.44.13:8005/getAD', json.dumps({'user': username, 'password':password, 'usercheck': username}))
|
||||
|
||||
# if True:
|
||||
|
||||
Reference in new issue
Block a user