drop support for usernames

Mojang has disabled their legacy skins API:
https://twitter.com/MojangSupport/status/964511258601865216

With their API rate limits, it's now practially impossible
for us to support usernames.

Fixes #142. The default parameter allows using:

- UUID
- URL
- MHF_Alex
- MHF_Steve
- Alex
- Steve

Contrary to UUIDs, using alex/steve doesn't redirect
and instead provides the skin from a locally stored file.
This commit is contained in:
jomo
2018-02-16 18:01:41 +01:00
parent a187fb26d4
commit dff58c66e7
11 changed files with 176 additions and 582 deletions

View File

@@ -79,7 +79,7 @@ module.exports = function(req, callback) {
} else if (!helpers.id_valid(userId)) {
callback({
status: -2,
body: "Invalid UserID",
body: "Invalid UUID",
});
return;
}

View File

@@ -20,7 +20,7 @@ module.exports = function(req, callback) {
if (!helpers.id_valid(userId)) {
callback({
status: -2,
body: "Invalid UserID"
body: "Invalid UUID"
});
return;
}

View File

@@ -94,7 +94,7 @@ module.exports = function(req, callback) {
} else if (!helpers.id_valid(userId)) {
callback({
status: -2,
body: "Invalid UserID"
body: "Invalid UUID"
});
return;
}

View File

@@ -78,7 +78,7 @@ module.exports = function(req, callback) {
if (!helpers.id_valid(userId)) {
callback({
status: -2,
body: "Invalid UserID"
body: "Invalid UUID"
});
return;
}