pymensago/iscmds.py
def passcode(conn: ServerConnection, wid: utils.UUID, reset_code: str, pwhash: str) -> RetVal:
	'''Resets a workspace's password'''

	status = conn.send_message({
		'Action': 'PASSCODE',
		'Data': {
			'Workspace-ID': wid.as_string(),
			'Reset-Code': reset_code,
			'Password-Hash': pwhash
		}
	})
	if status.error():
		return status
	
	response = conn.read_response(server_response)
	if response['Code'] != 200:
		return wrap_server_error(response)
	
	return RetVal()
Resets a workspace's password
Resets a workspace's password
Resets a workspace ' s password
def passcode(conn: ServerConnection, wid: utils.UUID, reset_code: str, pwhash: str) -> RetVal:
	status = conn.send_message({
		'Action': 'PASSCODE',
		'Data': {
			'Workspace-ID': wid.as_string(),
			'Reset-Code': reset_code,
			'Password-Hash': pwhash
		}
	})
	if status.error():
		return status
	response = conn.read_response(server_response)
	if response['Code'] != 200:
		return wrap_server_error(response)
	return RetVal()
def passcode ( conn : ServerConnection , wid : utils . UUID , reset_code : str , pwhash : str ) -> RetVal : status = conn . send_message ( { 'Action' : 'PASSCODE' , 'Data' : { 'Workspace-ID' : wid . as_string ( ) , 'Reset-Code' : reset_code , 'Password-Hash' : pwhash } } ) if status . error ( ) : return status response = conn . read_response ( server_response ) if response [ 'Code' ] != 200 : return wrap_server_error ( response ) return RetVal ( )
Resets a workspace's password
Resets a workspace ' s password
'''Resets a workspace's password'''
conn
ServerConnection
wid
utils.UUID
reset_code
str
pwhash
str