Configuration/Setting module added

This commit is contained in:
ahmadbilalkhalid 2019-12-21 14:36:55 +05:00
commit bc58a6ed9c
11 changed files with 217 additions and 106 deletions

View file

@ -29,11 +29,7 @@ def check_otp(name, realm, token):
return 400
response = requests.post(
"{OTP_SERVER}{OTP_VERIFY_ENDPOINT}".format(
OTP_SERVER=config['otp']['server'],
OTP_VERIFY_ENDPOINT=config['otp']['verify_endpoint']
),
json=data,
config['otp']['verification_controller_url'], json=data
)
return response.status_code