diff options
author | Likun Zhang <zlkzhy@gmail.com> | 2010-03-12 04:22:04 +0100 |
---|---|---|
committer | Likun Zhang <zlkzhy@gmail.com> | 2010-03-12 04:22:04 +0100 |
commit | 7d3ca0ba4aca17854efd54584fa9ce5062388ae8 (patch) | |
tree | 1c0f834726acc7ae902e0d99f8fa120f9133c268 /src/bin/usermgr | |
parent | added a test for multi questions (diff) | |
download | kea-7d3ca0ba4aca17854efd54584fa9ce5062388ae8.tar.xz kea-7d3ca0ba4aca17854efd54584fa9ce5062388ae8.zip |
Fix bug: user name can't be empty.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1345 e5f2f494-b856-4b98-b285-d166d9295462
Diffstat (limited to 'src/bin/usermgr')
-rw-r--r-- | src/bin/usermgr/b10-cmdctl-usermgr.py.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/usermgr/b10-cmdctl-usermgr.py.in b/src/bin/usermgr/b10-cmdctl-usermgr.py.in index 861cb1055d..93beeb1f4d 100644 --- a/src/bin/usermgr/b10-cmdctl-usermgr.py.in +++ b/src/bin/usermgr/b10-cmdctl-usermgr.py.in @@ -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: |