mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-10 10:52:56 +08:00
Get real IP for verification log.
This commit is contained in:
@@ -30,7 +30,7 @@ type Record struct {
|
||||
}
|
||||
|
||||
func Records(ctx *context.Context) *Record {
|
||||
ip := strings.Replace(getIPFromRequest(ctx.Request), ": ", "", -1)
|
||||
ip := strings.Replace(GetIPFromRequest(ctx.Request), ": ", "", -1)
|
||||
currenttime := GetCurrentTime()
|
||||
requesturi := ctx.Request.RequestURI
|
||||
action := strings.Replace(ctx.Request.URL.Path, "/api/", "", -1)
|
||||
|
Reference in New Issue
Block a user