From b3d63007e1099bedf37869ad2ee75cafc6562a52 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 26 Feb 2024 08:30:17 -0500 Subject: [PATCH] fix: pass login ip --- api/s5/s5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index d5fbb0a..2b4dc0c 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -578,7 +578,7 @@ func (s *S5API) accountRegister(jc jape.Context) { return } - jwt, err := s.accounts.LoginPubkey(rawPubkey) + jwt, err := s.accounts.LoginPubkey(rawPubkey, jc.Request.RemoteAddr) if err != nil { s.sendErrorResponse(jc, NewS5Error(ErrKeyAuthenticationFailed, err)) return