Don't add a "password required" notification for non-database auth via OIDC

This commit is contained in:
Joseph Schorr 2017-11-10 16:49:32 -05:00
parent d32139292b
commit 503cff8f0c
6 changed files with 30 additions and 1 deletions

View file

@ -13,6 +13,11 @@ class DatabaseUsers(object):
def supports_encrypted_credentials(self):
return True
@property
def requires_distinct_cli_password(self):
# Since the database stores its own password.
return True
def verify_credentials(self, username_or_email, password):
""" Simply delegate to the model implementation. """
result = model.user.verify_user(username_or_email, password)