Ver código fonte

Fix 419 registration error

tags/v0.1.0
Immanuel Onyeka 3 anos atrás
pai
commit
bba2e539f0
1 arquivos alterados com 4 adições e 2 exclusões
  1. +4
    -2
      resources/js/register-area/register-area.vue

+ 4
- 2
resources/js/register-area/register-area.vue Ver arquivo

@@ -57,7 +57,8 @@ function getCookie(name) {
var re = new RegExp(name + "=([^;]+)")
var value = re.exec(document.cookie)

return (value != null) ? unescape(value[1]) : null
let v = (value != null) ? unescape(value[1]) : null
return v
}

function getToken() {
@@ -69,7 +70,7 @@ function getToken() {
})
}
function register(event) {
this.active = 'loading'
/* this.active = 'loading' */
this.getToken().then(() => {fetch("/register", {
method: 'POST',
headers: {'Content-Type': 'application/json',
@@ -96,6 +97,7 @@ function getToken() {
/* console.log(response.json()) */
});
event.preventDefault();
event.stopPropagation();
})
}



Carregando…
Cancelar
Salvar