fix: pass login ip
This commit is contained in:
parent
355033634d
commit
b3d63007e1
|
@ -578,7 +578,7 @@ func (s *S5API) accountRegister(jc jape.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
jwt, err := s.accounts.LoginPubkey(rawPubkey)
|
jwt, err := s.accounts.LoginPubkey(rawPubkey, jc.Request.RemoteAddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.sendErrorResponse(jc, NewS5Error(ErrKeyAuthenticationFailed, err))
|
s.sendErrorResponse(jc, NewS5Error(ErrKeyAuthenticationFailed, err))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue