Commit 7d3ca0ba authored by Likun Zhang's avatar Likun Zhang
Browse files

Fix bug: user name can't be empty.

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1345 e5f2f494-b856-4b98-b285-d166d9295462
parent 23f9a44a
......@@ -91,8 +91,12 @@ def main():
try:
while True :
name = input("Desired Login Name:")
if name == '':
print("error, user name can't be empty")
continue
if username_exist(name, filename):
print("The usename already exist!")
print("use name already exist!")
continue
while True:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment