 			change_icon CONST.status.unconnected
 	)
 
-login_usereg = (username, md5_password, successCallback, failCallback) ->
+login_usereg = (successCallback, failCallback) ->
+	[ username, password] = get_token()
 	$.post(
 		CONST.url.login
 		{
 			action: "login"
 			user_login_name: username
-			user_password: md5_password
+			user_password: password
 		}
 		(result) ->
 			if result == CONST.flag.login_ok

				failCallback && failCallback result
	)

login_net = (callback) ->
	username = localStorage.getItem 'username', ''
	password = localStorage.getItem 'password', ''
	if not username or not password
		console.log "haven't set token, use setToken first"
	login_net_post(
		username
		password
		callback
		(result) ->
			set_error result
	)

		op: CONST.op.passErrorCode
		lastError: errorCode
		() ->
			sendError = chrome.runtime.lastError
			# if popup doesn't open
			if sendError
				chrome.browserAction.setBadgeText(
