take encryption function from globals() rather than locals()
This commit is contained in:
parent
0171690af5
commit
00fb296ed7
@ -65,5 +65,5 @@ def has_right(owner, user, password):
|
||||
if line.strip():
|
||||
login, hash_value = line.strip().split(":")
|
||||
if login == user and (not PERSONAL or user == owner):
|
||||
return locals()["_%s" % ENCRYPTION](hash_value, password)
|
||||
return globals()["_%s" % ENCRYPTION](hash_value, password)
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user