salt the hashes
This commit is contained in:
@@ -101,7 +101,7 @@ def add_share(shares, config, opts):
|
||||
if opts.password:
|
||||
if opts.plain:
|
||||
share['pass_plain'] = opts.password
|
||||
share['pass_hash'] = password_hash(opts.password)
|
||||
share['pass_hash'] = password_hash(opts.password, config['app_secret_key'])
|
||||
if opts.expire:
|
||||
try:
|
||||
date_object = datetime.strptime(opts.expire,"%Y-%m-%d %H:%M")
|
||||
@@ -165,7 +165,7 @@ def modify_share(shares, config, opts):
|
||||
# ADD/Change a password
|
||||
if opts.plain:
|
||||
share['pass_plain'] = opts.password
|
||||
share['pass_hash'] = password_hash(opts.password)
|
||||
share['pass_hash'] = password_hash(opts.password, config['app_secret_key'])
|
||||
|
||||
if opts.expire:
|
||||
if opts.expire == "":
|
||||
|
||||
Reference in New Issue
Block a user