Show log message on login
Useful for tracking who is doing what
This commit is contained in:
parent
5998b2c2c9
commit
01175ecb21
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue