Browse Source

Change the format of the user account file.

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@631 e5f2f494-b856-4b98-b285-d166d9295462
Likun Zhang 15 years ago
parent
commit
c261e505c6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/usr_mgr/usr_mgr.py

+ 2 - 2
tools/usr_mgr/usr_mgr.py

@@ -21,7 +21,7 @@ class PasswordHash(object):
 def check_username(name):
     csvfile = open('passwd.csv')
     ret = 0
-    reader = csv.reader(csvfile, delimiter = "\t", quoting = csv.QUOTE_MINIMAL)
+    reader = csv.reader(csvfile)
     for row in reader:
         if name == row[0]:
             ret = 1
@@ -32,7 +32,7 @@ def check_username(name):
 
 def save_info(name,pw,salt):
     csvfile = open('passwd.csv', 'a')
-    writer = csv.writer(csvfile, delimiter = "\t", quoting = csv.QUOTE_MINIMAL)
+    writer = csv.writer(csvfile)
     writer.writerow([name, pw, salt])
     csvfile.close()