update domain
This commit is contained in:
parent
432931aab2
commit
d4d6fd3d07
2 changed files with 4 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ router.post('/post', postLimiter, async (request, response, next) => {
|
||||||
try {
|
try {
|
||||||
let isPidValid = true;
|
let isPidValid = true;
|
||||||
try {
|
try {
|
||||||
const spfnCheck = await axios.get(`https://account.spfn.net/api/v2/users/${pid}/mii`);
|
const spfnCheck = await axios.get(`https://account.spbr.net/api/v2/users/${pid}/mii`);
|
||||||
if (typeof spfnCheck.data === 'string' && spfnCheck.data.includes('<code>0008</code>')) {
|
if (typeof spfnCheck.data === 'string' && spfnCheck.data.includes('<code>0008</code>')) {
|
||||||
isPidValid = false;
|
isPidValid = false;
|
||||||
}
|
}
|
||||||
|
|
@ -116,4 +116,4 @@ router.post('/post', postLimiter, async (request, response, next) => {
|
||||||
return response.send('success');
|
return response.send('success');
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import requests
|
||||||
from config import settings
|
from config import settings
|
||||||
from argon2 import PasswordHasher
|
from argon2 import PasswordHasher
|
||||||
|
|
||||||
API_URL = "https://account.spfn.net/api/v2"
|
API_URL = "https://account.spbr.net/api/v2"
|
||||||
CLIENT_ID = "splatnet"
|
CLIENT_ID = "splatnet"
|
||||||
CLIENT_SECRET = settings.account_client_secret
|
CLIENT_SECRET = settings.account_client_secret
|
||||||
ph = PasswordHasher()
|
ph = PasswordHasher()
|
||||||
|
|
@ -38,4 +38,4 @@ def get_profile(token):
|
||||||
|
|
||||||
response = requests.get(url, headers=headers, timeout=10)
|
response = requests.get(url, headers=headers, timeout=10)
|
||||||
|
|
||||||
return response.json() if response.ok else None
|
return response.json() if response.ok else None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue