|
|
|
@ -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 |
|
|
|
|