File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ def verify_password(password, password_hash):
115
115
"""Returns ``True`` if the password matches the supplied hash.
116
116
117
117
: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)
119
119
"""
120
120
if _security .password_hash != 'plaintext' :
121
121
password = get_hmac (password )
@@ -143,7 +143,7 @@ def verify_and_update_password(password, user):
143
143
def encrypt_password (password ):
144
144
"""Encrypts the specified plaintext password using the configured encryption options.
145
145
146
- :param password: The plaintext passwrod to encrypt
146
+ :param password: The plaintext password to encrypt
147
147
"""
148
148
if _security .password_hash == 'plaintext' :
149
149
return password
You can’t perform that action at this time.
0 commit comments