Change /me to /user and allow email changes

This commit is contained in:
2020-01-13 01:03:02 +00:00
parent 56a187c576
commit f50a3ca129
7 changed files with 25 additions and 16 deletions
+4
View File
@@ -55,6 +55,10 @@ export const requester = (route, method, token, data) => {
} else if (code >= 400 && code < 500) {
return error.data.json()
.then(result => {
if (result.detail == 'Invalid token.') {
localStorage.clear();
window.location = '/';
}
throw customError(result);
});
} else if (code >= 500 && code < 600) {