Skip to content

Commit

Permalink
Revert to original login methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenbos committed Feb 14, 2024
1 parent d67affa commit b1833b6
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions src/components/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,26 @@ export default {
self.showExistingErrors = false;
ct.churchtools.user = self.user;
ct.churchtools.password = self.password;
loginQ();
self.activeStep = 2;
self.setAlert(false);
self.getExportSpenderPersonData();
loginQ(self.user, self.password).then(result => {
if (result.status == "success") {
console.log(result);
self.loggedIn = true;
self.password = null;
self.activeStep = 2;
self.setAlert(false);
self.getExportSpenderPersonData();
} else {
self.loggedIn = false;
self.password = null;
self.loading = false;
self.setAlert(true, result.message);
}
})
.catch(err => {
let msg = (err.message == undefined) ? this.$parent.$i18n.translate('unknownURL') : err.message
self.setAlert(true, msg);
self.loading = false;
});
},
getExportSpenderPersonData: function() {
var self = this;
Expand Down

0 comments on commit b1833b6

Please sign in to comment.