Login.py: must convert warn to string before comparing to OK

pull/57/head
Lan Hui 2022-11-03 22:06:24 +08:00
parent f0b5adc5e4
commit 702205940c
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ def signup():
#! 添加如下代码为了过滤注册时的非法字符
warn = WarningMessage(username)
if warn != 'OK':
if str(warn) != 'OK':
return str(warn)
available = check_username_availability(username)