Typing mismatch
This commit is contained in:
parent
55026aa626
commit
0f72679fc8
@ -73,7 +73,7 @@ class Authetication:
|
|||||||
user = {
|
user = {
|
||||||
'username': username,
|
'username': username,
|
||||||
'password': bcrypt_hash.decode('utf-8'),
|
'password': bcrypt_hash.decode('utf-8'),
|
||||||
'homeDir': data['index'] + 1
|
'homeDir': str(data['index'] + 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
data['index'] = data['index'] + 1
|
data['index'] = data['index'] + 1
|
||||||
|
@ -33,7 +33,7 @@ def testAuth(username: str, password: str):
|
|||||||
auth.saveUser(username, password)
|
auth.saveUser(username, password)
|
||||||
homeDir = auth.login(username, password)
|
homeDir = auth.login(username, password)
|
||||||
|
|
||||||
if homeDir == 1:
|
if homeDir == '1':
|
||||||
test_logger.info('TEST 1 --> Authentication test with VALID :: PASSED')
|
test_logger.info('TEST 1 --> Authentication test with VALID :: PASSED')
|
||||||
else:
|
else:
|
||||||
test_logger.info('TEST 1 --> Authentication test with VALID :: FAILED')
|
test_logger.info('TEST 1 --> Authentication test with VALID :: FAILED')
|
||||||
|
1
server/config/config.txt
Normal file
1
server/config/config.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"index": 1, "user": [{"username": "Di\u00f3sbejglia", "password": "$2a$12$Gx9p..zJuM8uXdktzlC3vuGBSSpw1/lBCGSIK5d6cAFyKnfoPMPo6", "homeDir": "1"}]}
|
Loading…
Reference in New Issue
Block a user