Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #309 from gregeinfrank/develop
Browse files Browse the repository at this point in the history
Fix two typos in docstrings
  • Loading branch information
Matt Wright committed Aug 29, 2014
2 parents 31e3ab5 + 2aeee34 commit 708ddeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_security/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 708ddeb

Please sign in to comment.