fix: password case (#49)

修复 了当填入是密码也会强制大写的 bug
This commit is contained in:
O1Si 2021-12-29 14:31:06 +08:00 committed by GitHub
parent e5b1157519
commit 1ef607c1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,9 +107,10 @@ def format_config(config: dict) -> dict:
i['uid'] = str(i.get('uid'))
i['user-agent'] = str(i.get('user-agent'))
i['board-id'] = str(i.get('board-id'))
i['password'] = str(i.get('password')).upper()
if len(i.get('password')) != 32:
i['password'] = md5_crypto(i.get('password')).upper()
else:
i['password'] = str(i.get('password')).upper()
if i.get('device-id'):
i['device-id'] = str(i.get('device-id'))
else: