mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
chore: Change reset password error message(#2133)
This commit is contained in:
@@ -28,7 +28,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/* global bus */
|
|
||||||
import { required, minLength, email } from 'vuelidate/lib/validators';
|
import { required, minLength, email } from 'vuelidate/lib/validators';
|
||||||
import Auth from '../../api/auth';
|
import Auth from '../../api/auth';
|
||||||
import { frontendURL } from '../../helper/URLHelper';
|
import { frontendURL } from '../../helper/URLHelper';
|
||||||
@@ -74,8 +73,12 @@ export default {
|
|||||||
this.showAlert(successMessage);
|
this.showAlert(successMessage);
|
||||||
window.location = frontendURL('login');
|
window.location = frontendURL('login');
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(error => {
|
||||||
this.showAlert(this.$t('RESET_PASSWORD.API.ERROR_MESSAGE'));
|
let errorMessage = this.$t('RESET_PASSWORD.API.ERROR_MESSAGE');
|
||||||
|
if (error?.response?.data?.message) {
|
||||||
|
errorMessage = error.response.data.message;
|
||||||
|
}
|
||||||
|
this.showAlert(errorMessage);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user