mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 05:32:18 +00:00
0.0.17
- Add check for registration_enabled on /register endpoint - Made songlookup check artist name as well
This commit is contained in:
parent
9cbb94fc56
commit
8324894b0f
7 changed files with 47 additions and 14 deletions
|
@ -252,12 +252,3 @@ export const getServerInfo = () => {
|
|||
return handleErrorResp(error)
|
||||
});
|
||||
}
|
||||
|
||||
export const resetScrobbleToken = () => {
|
||||
return axios.patch(process.env.REACT_APP_API_URL + "user", { token: "" }, { headers: getHeaders() })
|
||||
.then((data) => {
|
||||
return data.data
|
||||
}).catch((error) => {
|
||||
return handleErrorResp(error)
|
||||
});
|
||||
}
|
|
@ -56,7 +56,7 @@ const User = () => {
|
|||
|
||||
const resetToken = () => {
|
||||
setLoading(true);
|
||||
resetScrobbleToken(user.uuid)
|
||||
patchUser({ token: '' })
|
||||
.then(() => {
|
||||
getUser()
|
||||
.then(data => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue