This commit is contained in:
les
2020-02-15 16:40:04 +01:00
parent f0c44d2e0c
commit f3206656e2

View File

@@ -21,7 +21,6 @@
import { mapState } from 'vuex'
import { Message } from 'element-ui'
import get from 'lodash/get'
import linkify from 'linkifyjs'
export default {
name: 'Register',
@@ -49,9 +48,6 @@ export default {
methods: {
async register () {
try {
if (!linkify.test(this.user.email, 'email')) {
throw new Error('Invalid email')
}
this.loading = true
const user = await this.$axios.$post('/user/register', this.user)
// this is the first user registered