diff --git a/web/signin.go b/web/signin.go index 52060542..742f4a66 100644 --- a/web/signin.go +++ b/web/signin.go @@ -170,6 +170,7 @@ func signinInternal(c *fibre.Context, vars map[string]interface{}) (str string, "DB": d, "SC": s, "TK": "default", + "IP": c.IP().String(), "iss": "Surreal", "iat": time.Now().Unix(), "nbf": time.Now().Unix(), @@ -227,6 +228,7 @@ func signinInternal(c *fibre.Context, vars map[string]interface{}) (str string, "NS": n, "DB": d, "TK": "default", + "IP": c.IP().String(), "iss": "Surreal", "iat": time.Now().Unix(), "nbf": time.Now().Unix(), @@ -279,6 +281,7 @@ func signinInternal(c *fibre.Context, vars map[string]interface{}) (str string, "US": u, "NS": n, "TK": "default", + "IP": c.IP().String(), "iss": "Surreal", "iat": time.Now().Unix(), "nbf": time.Now().Unix(), diff --git a/web/signup.go b/web/signup.go index 754559bc..508c808a 100644 --- a/web/signup.go +++ b/web/signup.go @@ -169,6 +169,7 @@ func signupInternal(c *fibre.Context, vars map[string]interface{}) (str string, "DB": d, "SC": s, "TK": "default", + "IP": c.IP().String(), "iss": "Surreal", "iat": time.Now().Unix(), "nbf": time.Now().Unix(),