use akkoma-specific source for MFM unless asked not to (#132)

Reviewed-on: https://akkoma.dev/AkkomaGang/pleroma-fe/pulls/132
This commit is contained in:
floatingghost 2022-08-17 09:34:50 +00:00
parent 64fdde52f6
commit e61228b031
5 changed files with 22 additions and 3 deletions

View file

@ -589,7 +589,7 @@ const users = {
const response = data.error
// Authentication failed
commit('endLogin')
if (response.status === 401) {
if (response.status === 401 || response.status === 403) {
reject(new Error('Wrong username or password'))
} else {
reject(new Error('An error occurred, please try again'))