changed registration process
This commit is contained in:
parent
44086c630d
commit
57c62d421d
@ -47,7 +47,7 @@
|
||||
<div class="" style="max-width: 440px">
|
||||
<q-btn
|
||||
:disabled="!validationSuccesful"
|
||||
label="Sign up"
|
||||
label="Registrieren"
|
||||
color="primary"
|
||||
class="full-width"
|
||||
@click="register()"
|
||||
@ -87,14 +87,17 @@
|
||||
return false;
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.login();
|
||||
},
|
||||
methods: {
|
||||
validateEmail(email) {
|
||||
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());
|
||||
},
|
||||
register: function () {
|
||||
|
||||
if(this.user.email===this.user.checkemail&&this.user.password===this.user.checkpassword){
|
||||
this.login();
|
||||
const data = {
|
||||
name: this.user.name,
|
||||
password: this.user.password,
|
||||
@ -157,7 +160,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
login: function () {
|
||||
login() {
|
||||
|
||||
const logindata = {
|
||||
email: "register@bugageocaching.de",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user