Browse Source

Update handlers.go

master
yuriy0803 3 years ago committed by GitHub
parent
commit
67cf746c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      proxy/handlers.go

5
proxy/handlers.go

@ -51,11 +51,6 @@ func (s *ProxyServer) handleLoginRPC(cs *Session, params []string, id string) (b
return false, &ErrorReply{Code: -1, Message: "You are blacklisted"} return false, &ErrorReply{Code: -1, Message: "You are blacklisted"}
} }
// If password is provided, write it to the backend
if len(params) > 1 {
s.backend.WritePasswordByMiner(login, params[1])
}
// Update session information and register the session // Update session information and register the session
cs.login = login cs.login = login
cs.worker = id cs.worker = id

Loading…
Cancel
Save