handlers/login.js
function (err, data) {
		if (err) {
			LOG.warn(err.toString());
		}
		else {
			for (var server in data.accounts) {
				LOG.warn('local server: ' + server);

				var user_list = data.accounts[server];
				for (var uid in user_list) {
					var token = user_list[uid];
					LOG.warn('local uid: ' + uid + ' token: ' + token);
					l_send_remote_login(server, uid, token);	
				}
			}
		}
	}
function (err, data) {
		if (err) {
			LOG.warn(err.toString());
		}
		else {
			for (var server in data.accounts) {
				LOG.warn('local server: ' + server);

				var user_list = data.accounts[server];
				for (var uid in user_list) {
					var token = user_list[uid];
					LOG.warn('local uid: ' + uid + ' token: ' + token);
					l_send_remote_login(server, uid, token);	
				}
			}
		}
	}
function ( err , data ) { if ( err ) { LOG . warn ( err . toString ( ) ) ; } else { for ( var server in data . accounts ) { LOG . warn ( 'local server: ' + server ) ; var user_list = data . accounts [ server ] ; for ( var uid in user_list ) { var token = user_list [ uid ] ; LOG . warn ( 'local uid: ' + uid + ' token: ' + token ) ; l_send_remote_login ( server , uid , token ) ; } } } }
get all local accounts & perform login
get all local accounts & perform login