Removed options related to the hashing of passwords; it's an unimportant user detail, and people smart enough to care are smart enough to do it themselves.

This commit is contained in:
Jeremy Fincher 2005-05-26 02:50:00 +00:00
parent 90d199b86d
commit b09f35846c
1 changed files with 1 additions and 15 deletions

View File

@ -51,12 +51,6 @@ def main():
parser.add_option('-p', '--password', action='store', default='',
dest='password',
help='password for the user.')
parser.add_option('-x', '--hashed', action='store_const', const=1,
default=0, dest='hashed',
help='hash encrypt the password.')
parser.add_option('-n', '--plain', action='store_const', const=2,
default=0, dest='hashed',
help='store the password in plain text.')
parser.add_option('-c', '--capability', action='append',
dest='capabilities', metavar='CAPABILITY',
help='capability the user should have; '
@ -106,14 +100,6 @@ def main():
else:
password = options.password
if options.hashed is 0:
hashed = yn('Do you want the password to be hashed instead of '
'storing it as plain text?', default=False)
elif options.hashed is 1:
hashed = True
else:
hashed = False
if not options.capabilities:
capabilities = []
prompt = 'Would you like to give %s a capability?' % name
@ -125,7 +111,7 @@ def main():
user = ircdb.users.newUser()
user.name = name
user.setPassword(password, hashed=hashed)
user.setPassword(password)
for capability in capabilities:
user.addCapability(capability)
ircdb.users.setUser(user)