forked from mrlan/EnglishPal
Login.py: must convert warn to string before comparing to OK
parent
f0b5adc5e4
commit
702205940c
|
@ -23,7 +23,7 @@ def signup():
|
||||||
|
|
||||||
#! 添加如下代码为了过滤注册时的非法字符
|
#! 添加如下代码为了过滤注册时的非法字符
|
||||||
warn = WarningMessage(username)
|
warn = WarningMessage(username)
|
||||||
if warn != 'OK':
|
if str(warn) != 'OK':
|
||||||
return str(warn)
|
return str(warn)
|
||||||
|
|
||||||
available = check_username_availability(username)
|
available = check_username_availability(username)
|
||||||
|
|
Loading…
Reference in New Issue