mirror of
https://github.com/wassname/flask-security.git
synced 2026-10-02 12:10:40 +08:00
Fix two typos in docstrings
This commit is contained in:
1 parent
31e3ab5470
commit
2aeee348d4
1 file changed
+2
-2
@@ -115,7 +115,7 @@ def verify_password(password, password_hash):
|
||||
"""Returns ``True`` if the password matches the supplied hash.
|
||||
|
||||
:param password: A plaintext password to verify
|
||||
:param password_hash: The expected hash value of the password (usually form your database)
|
||||
:param password_hash: The expected hash value of the password (usually from your database)
|
||||
"""
|
||||
if _security.password_hash != 'plaintext':
|
||||
password = get_hmac(password)
|
||||
@@ -143,7 +143,7 @@ def verify_and_update_password(password, user):
|
||||
def encrypt_password(password):
|
||||
"""Encrypts the specified plaintext password using the configured encryption options.
|
||||
|
||||
:param password: The plaintext passwrod to encrypt
|
||||
:param password: The plaintext password to encrypt
|
||||
"""
|
||||
if _security.password_hash == 'plaintext':
|
||||
return password
|
||||
|
||||
Reference in new issue
Block a user