Compare commits

..

2 Commits

Author SHA1 Message Date
2f011de6f7 Merge branch 'master' of https://git.kmlabz.com/BiztProtoBois/server
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-18 16:30:41 +02:00
0f72679fc8 Typing mismatch 2021-04-18 16:30:01 +02:00
3 changed files with 3 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class Authetication:
user = {
'username': username,
'password': bcrypt_hash.decode('utf-8'),
'homeDir': data['index'] + 1
'homeDir': str(data['index'] + 1)
}
data['index'] = data['index'] + 1

View File

@ -33,7 +33,7 @@ def testAuth(username: str, password: str):
auth.saveUser(username, password)
homeDir = auth.login(username, password)
if homeDir == 1:
if homeDir == '1':
test_logger.info('TEST 1 --> Authentication test with VALID :: PASSED')
else:
test_logger.info('TEST 1 --> Authentication test with VALID :: FAILED')

1
server/config/config.txt Normal file
View File

@ -0,0 +1 @@
{"index": 1, "user": [{"username": "Di\u00f3sbejglia", "password": "$2a$12$Gx9p..zJuM8uXdktzlC3vuGBSSpw1/lBCGSIK5d6cAFyKnfoPMPo6", "homeDir": "1"}]}