Compare commits
2 Commits
6dc735c180
...
2f011de6f7
Author | SHA1 | Date | |
---|---|---|---|
2f011de6f7 | |||
0f72679fc8 |
@ -75,7 +75,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