forked from mrlan/EnglishPal
关于修复Bug-490
parent
270f6159b2
commit
1fd7155b7b
|
@ -32,7 +32,8 @@ def signup():
|
|||
return str(warn)
|
||||
|
||||
available = check_username_availability(username)
|
||||
verified_2 = verify_passverified(password, password2)
|
||||
|
||||
verified_2 = verify_passverified(password, password2) # 比较“密码”与“确认密码”
|
||||
if not available: # 用户名不可用
|
||||
flash('用户名 %s 已经被注册。' % (username))
|
||||
return render_template('signup.html')
|
||||
|
|
Loading…
Reference in New Issue