Skip to content

Commit 708ddeb

Browse files
author
Matt Wright
committed
Merge pull request pallets-eco#309 from gregeinfrank/develop
Fix two typos in docstrings
2 parents 31e3ab5 + 2aeee34 commit 708ddeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_security/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def verify_password(password, password_hash):
115115
"""Returns ``True`` if the password matches the supplied hash.
116116
117117
:param password: A plaintext password to verify
118-
:param password_hash: The expected hash value of the password (usually form your database)
118+
:param password_hash: The expected hash value of the password (usually from your database)
119119
"""
120120
if _security.password_hash != 'plaintext':
121121
password = get_hmac(password)
@@ -143,7 +143,7 @@ def verify_and_update_password(password, user):
143143
def encrypt_password(password):
144144
"""Encrypts the specified plaintext password using the configured encryption options.
145145
146-
:param password: The plaintext passwrod to encrypt
146+
:param password: The plaintext password to encrypt
147147
"""
148148
if _security.password_hash == 'plaintext':
149149
return password

0 commit comments

Comments
 (0)