Mercurial > hg > bitsyblog
comparison bitsyblog/factory.py @ 105:67e01fc5e360
STUB: bitsyblog/bitsyblog.py bitsyblog/factory.py bitsyblog/user.py
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 23 Feb 2014 17:45:22 -0800 |
parents | 3198edbf7d8e |
children | e2f7dccbac26 |
comparison
equal
deleted
inserted
replaced
104:3198edbf7d8e | 105:67e01fc5e360 |
---|---|
55 app.passwords, | 55 app.passwords, |
56 newuser=None, | 56 newuser=None, |
57 site=bitsyblog_args.get('site', 'bitsyblog'), | 57 site=bitsyblog_args.get('site', 'bitsyblog'), |
58 secret=secret) | 58 secret=secret) |
59 if not user in app.users: | 59 if not user in app.users: |
60 # create a new user | |
61 # really, should go in CLI or what not | |
60 pw = getpass('Enter password for %s: ' % user) | 62 pw = getpass('Enter password for %s: ' % user) |
61 app.newuser(user, auth.hash(app.user, pw)) | 63 app.newuser(user, auth.hash(app.user, pw)) |
62 return auth | 64 return auth |
63 | 65 |
64 | 66 |