pymensago/iscmds.py
def password(conn: ServerConnection, pwhash: str) -> RetVal:
	'''Continues the login process sending a password hash to the server.'''
	
	status = conn.send_message({
		'Action' : "PASSWORD",
		'Data' : { 'Password-Hash' : pwhash }
	})
	if status.error():
		return status

	response = conn.read_response(server_response)
	if response.error():
		return response
	
	if response['Code'] != 100:
		return wrap_server_error(response)
	
	return RetVal()
Continues the login process sending a password hash to the server.
Continues the login process sending a password hash to the server.
Continues the login process sending a password hash to the server .
def password(conn: ServerConnection, pwhash: str) -> RetVal:
	status = conn.send_message({
		'Action' : "PASSWORD",
		'Data' : { 'Password-Hash' : pwhash }
	})
	if status.error():
		return status
	response = conn.read_response(server_response)
	if response.error():
		return response
	if response['Code'] != 100:
		return wrap_server_error(response)
	return RetVal()
def password ( conn : ServerConnection , pwhash : str ) -> RetVal : status = conn . send_message ( { 'Action' : "PASSWORD" , 'Data' : { 'Password-Hash' : pwhash } } ) if status . error ( ) : return status response = conn . read_response ( server_response ) if response . error ( ) : return response if response [ 'Code' ] != 100 : return wrap_server_error ( response ) return RetVal ( )
Continues the login process sending a password hash to the server.
Continues the login process sending a password hash to the server .
'''Continues the login process sending a password hash to the server.'''
conn
ServerConnection
pwhash
str