Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Signup.vue
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | export default { | ||||
short_code: this.short_code, | short_code: this.short_code, | ||||
login: this.login, | login: this.login, | ||||
domain: this.domain, | domain: this.domain, | ||||
password: this.password, | password: this.password, | ||||
password_confirmation: this.password_confirmation, | password_confirmation: this.password_confirmation, | ||||
voucher: this.voucher | voucher: this.voucher | ||||
}).then(response => { | }).then(response => { | ||||
// auto-login and goto dashboard | // auto-login and goto dashboard | ||||
this.$root.loginUser(response.data.access_token) | this.$root.loginUser(response.data) | ||||
}) | }) | ||||
}, | }, | ||||
// Moves the user a step back in registration form | // Moves the user a step back in registration form | ||||
stepBack(e) { | stepBack(e) { | ||||
var card = $(e.target).closest('.card') | var card = $(e.target).closest('.card') | ||||
card.prev().removeClass('d-none').find('input').first().focus() | card.prev().removeClass('d-none').find('input').first().focus() | ||||
card.addClass('d-none').find('form')[0].reset() | card.addClass('d-none').find('form')[0].reset() | ||||
Show All 24 Lines |