|
@@ -53,7 +53,7 @@ func (l *Logger) LogAuth(r *http.Request, loginStatus bool) error {
|
|
|
}
|
|
|
|
|
|
//Log the current authentication to record by custom filled information. Use LogAuth if your module is authenticating via web interface
|
|
|
-func (l *Logger) LogAuthByRequestInfo(username string, remoteAddr string, timestamp int64, loginSuceed bool, authType string) error {
|
|
|
+func (l *Logger) LogAuthByRequestInfo(username string, remoteAddr string, timestamp int64, loginSucceed bool, authType string) error {
|
|
|
//Get the current month as the table name, create table if not exists
|
|
|
current := time.Now().UTC()
|
|
|
tableName := current.Format("Jan-2006")
|
|
@@ -90,7 +90,7 @@ func (l *Logger) LogAuthByRequestInfo(username string, remoteAddr string, timest
|
|
|
thisRecord := LoginRecord{
|
|
|
Timestamp: timestamp,
|
|
|
TargetUsername: username,
|
|
|
- LoginSucceed: loginSuceed,
|
|
|
+ LoginSucceed: loginSucceed,
|
|
|
IpAddr: remoteAddrInfo[0],
|
|
|
AuthType: authType,
|
|
|
Port: port,
|