Show log message on login

Useful for tracking who is doing what
This commit is contained in:
Eli Ribble 2016-05-17 16:35:56 -06:00
parent 5998b2c2c9
commit 01175ecb21
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ class Session(sepiida.endpoints.APIEndpoint):
user = vanth.platform.user.by_credentials(payload['username'], payload['password']) user = vanth.platform.user.by_credentials(payload['username'], payload['password'])
if not user: if not user:
raise vanth.errors.InvalidCredentials() raise vanth.errors.InvalidCredentials()
LOGGER.debug("Logged in %s %s", user['username'], user['uri'])
vanth.auth.set_session(user) vanth.auth.set_session(user)
@staticmethod @staticmethod