summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/StartPageSetup.vue
diff options
context:
space:
mode:
authorJannik Schönartz2019-02-24 03:16:04 +0100
committerJannik Schönartz2019-02-24 03:16:04 +0100
commitceb166a81c74ca41b7d9099fb5a067c5cfc1827d (patch)
tree8283f2110a0d74ea37c5856ae3fc683cf52b9fdf /webapp/src/components/StartPageSetup.vue
parent[webapp/groups] rework old tables to new data table (diff)
downloadbas-ceb166a81c74ca41b7d9099fb5a067c5cfc1827d.tar.gz
bas-ceb166a81c74ca41b7d9099fb5a067c5cfc1827d.tar.xz
bas-ceb166a81c74ca41b7d9099fb5a067c5cfc1827d.zip
[account] Add editable user info, change statuscodes, delete account
[server] Add method for updating user info Add method for deleteing user Switch from statuscode 500 to 401 Fixed stauts null exception Validate Email now allows empty email [webapp/AccountPage] Add button to delete the user account (including a dialog) Some order fixes with the info fields User info is now editable
Diffstat (limited to 'webapp/src/components/StartPageSetup.vue')
-rw-r--r--webapp/src/components/StartPageSetup.vue8
1 files changed, 1 insertions, 7 deletions
diff --git a/webapp/src/components/StartPageSetup.vue b/webapp/src/components/StartPageSetup.vue
index 71ead8f..32dd1a3 100644
--- a/webapp/src/components/StartPageSetup.vue
+++ b/webapp/src/components/StartPageSetup.vue
@@ -104,18 +104,12 @@ export default {
confirmPasswordError: false,
email: '',
emailRules: [
- v => this.validateEmail(v) || this.$t('emailError')
+ v => this.$validateEmail(v) || this.$t('emailError')
],
name: ''
}
},
methods: {
- // Function for validating the e-mail.
- validateEmail (email) {
- // Removed escape before [ because eslint told me so.
- var re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
- return re.test(String(email).toLowerCase())
- },
setup () {
if (this.$refs.form.validate()) {
this.$http.post('/api/authentication/setup', { username: this.username, password: this.password, name: this.name, email: this.email }).then(response => {