Skip to content

Commit

Permalink
改进 UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
SerinaNya committed Apr 28, 2020
1 parent 65da80d commit 1ad2926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/coffee-keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def addNew():
u_password = database.encrypt_password(
request.form['password'].encode()) # BASE64 交给 database.py
u_pubkey = request.form['pubkey']
u_uuid = str(database.get_u_uuid(u_mail))
u_uuid = database.get_u_uuid(u_mail)
u_date = database.get_u_date()
status, msg = database.add_new(
u_uuid, u_name, u_mail, u_password, u_pubkey, u_date)
Expand Down Expand Up @@ -120,7 +120,7 @@ def update():
return redirect(f'/updateInfo.html?msg=原密码查询失败', 302)
# 执行 update
u_pubkey = request.form['pubkey']
u_uuid = str(database.get_u_uuid(u_mail))
u_uuid = database.get_u_uuid(u_mail)
u_date = database.get_u_date()
id_status, u_id = database.find_ID(origin_mail)
if id_status:
Expand Down
2 changes: 2 additions & 0 deletions server/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
recaptcha_verify_failed = {'status': False, 'data': 'reCAPTCHA 验证失败,请刷新重试'}

hack_warning = 'We have detected that you are hacking. STOP it!'

info_not_found = '邮箱不存在'

0 comments on commit 1ad2926

Please sign in to comment.