Skip to content

Releases: dayumsista/bnt-auth

releasesV1.0

23 Oct 23:37
c83c334
Compare
Choose a tag to compare

add.py for binding a brand new security token, and link.py for binding based on an existing serial number and restore code.

releasesV0.3.01

03 Apr 00:16
3f6c077
Compare
Choose a tag to compare

releasesV0.3
Added error detection, now, if the programme is terminated unexpectedly
Please open an issue and submit it
C:\Users\Administrator\AppData\Roaming\bntAuth under the
The two latest files

The naming should look like:
20240403-0834.log
20240403-0834_resp.txt

releasesV0.3.01
import webbrowser
webbrowser.open(f'https://blizzard.xiaocaicai.com/direct?s={deviceSecret}')
On completion the browser will open to provide a verification code

Improved error tracing and return logging

releasesV0.2

29 Feb 02:28
15ba6c5
Compare
Choose a tag to compare

main.exe and add.exe bug fix:
if 'error2' in auth_response_json and auth_response_json['error2'] == 'invalid restore code':
print("Invalid Serial and Restore Code")
input("Press Enter to exit...")
exit()

if response.status_code == 400:
print("Account Already Have Auth")
input("Press Enter to exit...")
exit()

Architecture Optimisation:

if getattr(sys, 'frozen', False):
application_path = os.path.dirname(sys.executable)
else:
application_path = os.path.dirname(os.path.abspath(file))
file_path = os.path.join(application_path, "bntAuth.txt")
file_exists_and_not_empty = os.path.isfile(file_path) and os.path.getsize(file_path) > 0

with open(file_path, "a") as f:
if file_exists_and_not_empty:
f.write("\n")
for item in data_list:
f.write(item + " ")

After each item of data, there is only a space, not a new line.