API: replace SendLoginLogCommand with LoginHook (#28777)

* API: replace SendLoginLogCommand with LoginHook

* LoginInfo: Query -> LoginUsername
This commit is contained in:
Agnès Toulet
2020-11-06 10:01:13 +01:00
committed by GitHub
parent f0421ed08e
commit 2c246276fd
5 changed files with 77 additions and 97 deletions

View File

@ -36,6 +36,15 @@ type ExternalUserInfo struct {
IsDisabled bool
}
type LoginInfo struct {
AuthModule string
User *User
ExternalUser ExternalUserInfo
LoginUsername string
HTTPStatus int
Error error
}
// ---------------------
// COMMANDS
@ -65,16 +74,6 @@ type DeleteAuthInfoCommand struct {
UserAuth *UserAuth
}
type SendLoginLogCommand struct {
ReqContext *ReqContext
LogAction string
User *User
ExternalUser *ExternalUserInfo
LoginUsername string
HTTPStatus int
Error error
}
// ----------------------
// QUERIES