Fixed logins
This commit is contained in:
parent
b32c5854f2
commit
53aaf465f8
2 changed files with 16 additions and 13 deletions
|
|
@ -297,6 +297,8 @@ routes.get('/@me/profile', async (request, response) => {
|
|||
return response.send(json2xml(error));
|
||||
}
|
||||
|
||||
console.log(user)
|
||||
|
||||
let accounts = [];
|
||||
let device_attributes = [];
|
||||
|
||||
|
|
@ -329,7 +331,7 @@ routes.get('/@me/profile', async (request, response) => {
|
|||
user.device_attributes.device_attribute.forEach(device_attribute => {
|
||||
let attribute = {
|
||||
name: device_attribute.name,
|
||||
value: device_attribute.value,
|
||||
value: device_attribute.value
|
||||
};
|
||||
|
||||
if (device_attribute.created_date) {
|
||||
|
|
@ -344,11 +346,11 @@ routes.get('/@me/profile', async (request, response) => {
|
|||
let person = {
|
||||
person: {
|
||||
accounts: accounts,
|
||||
device_attributes: device_attributes,
|
||||
active_flag: user.active_flag,
|
||||
birth_date: user.birth_date,
|
||||
country: user.country,
|
||||
create_date: user.create_date,
|
||||
device_attributes: device_attributes,
|
||||
gender: user.gender,
|
||||
language: user.language,
|
||||
updated: user.updated,
|
||||
|
|
@ -368,17 +370,19 @@ routes.get('/@me/profile', async (request, response) => {
|
|||
},
|
||||
mii: {
|
||||
status: user.mii.status,
|
||||
data: user.mii.data,
|
||||
data: user.mii.data.replace('\r\n', ''),
|
||||
id: user.mii.id,
|
||||
mii_hash: user.mii.mii_hash,
|
||||
mii_images: {
|
||||
mii_image: {
|
||||
cached_url: 'https://mii-secure.account.nintendo.net/1flcdk3hks29a_standard.tga',
|
||||
id: user.mii.mii_images[0].mii_image.id,
|
||||
url: 'https://mii-secure.account.nintendo.net/1flcdk3hks29a_standard.tga',
|
||||
type: user.mii.mii_images[0].mii_image.type
|
||||
mii_images: [
|
||||
{
|
||||
mii_image: {
|
||||
cached_url: user.mii.mii_images[0].cached_url,
|
||||
id: user.mii.mii_images[0].id,
|
||||
url: user.mii.mii_images[0].url,
|
||||
type: user.mii.mii_images[0].type
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
name: user.mii.name,
|
||||
primary: user.mii.primary
|
||||
},
|
||||
|
|
|
|||
|
|
@ -10,9 +10,8 @@ console.log(decoded.face.color);
|
|||
|
||||
// Now to rip assets and start rendering
|
||||
|
||||
MII_DATA = 'AwAAQLh8tgPjxcLC16eU9AOzuI0n2QAAAERyAGUAbQBvAHYAZQAgAG0AZQAAAEBAIAAhAQJoRBgm\r\nNEYUgRIXaA0AACkAUkhQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPql';
|
||||
MII_DATA = 'AwAAQLh8tgPjxcLC16gxAwOzuI0n2QAAAEBwAHIAZQB0AGUAbgBkAG8AMQAAAEBAAAAhAQJoRBgm\r\nNEYUgRIXaA0AACkAUkhQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG+X';
|
||||
MiiHandler = new Mii(MII_DATA);
|
||||
decoded = MiiHandler.decode();
|
||||
|
||||
console.log(decoded.body.shirt_color);
|
||||
console.log(decoded.face.color);
|
||||
console.log(decoded);
|
||||
Loading…
Reference in a new issue