Merge remote-tracking branch 'upstream/develop' into neckbeard

This commit is contained in:
Your New SJW Waifu 2023-08-27 12:25:01 -05:00
commit 7604125048
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1 @@
Fix OAuth2 token lingering after revocation

View File

@ -651,6 +651,12 @@ const users = {
const response = data.error
// Authentication failed
commit('endLogin')
// remove authentication token on client/authentication errors
if ([400, 401, 403, 422].includes(response.status)) {
commit('clearToken')
}
if (response.status === 401) {
reject(new Error('Wrong username or password'))
} else {