chore: Adjust Chatwoot Config to deploy frontend as a separate app (#2347)

This commit is contained in:
Pranav Raj S
2021-05-28 19:21:16 +05:30
committed by GitHub
parent 3b39eb3e33
commit 25ba852b68
16 changed files with 53 additions and 60 deletions

View File

@@ -46,12 +46,11 @@
</template>
<script>
/* global bus */
import { required, minLength } from 'vuelidate/lib/validators';
import Auth from '../../api/auth';
import WootSubmitButton from '../../components/buttons/FormSubmitButton';
import { DEFAULT_REDIRECT_URL } from '../../constants';
export default {
components: {
@@ -81,7 +80,7 @@ export default {
// If url opened without token
// redirect to login
if (!this.resetPasswordToken) {
window.location = '/';
window.location = DEFAULT_REDIRECT_URL;
}
},
validations: {
@@ -118,7 +117,7 @@ export default {
Auth.setNewPassword(credentials)
.then(res => {
if (res.status === 200) {
window.location = '/';
window.location = DEFAULT_REDIRECT_URL;
}
})
.catch(() => {