Redirect after register

This commit is contained in:
Unknown 2018-02-14 21:41:09 +01:00
parent 188bc57b1b
commit b07fd7f204

View File

@ -159,7 +159,10 @@ $(document).ready(function() {
data: JSON.stringify({ id: id.toString(), checkToken: $('#input_preToken').val()}), data: JSON.stringify({ id: id.toString(), checkToken: $('#input_preToken').val()}),
success: function (data) { success: function (data) {
console.log(data); console.log(data);
alert("Connection ok!") Cookies.set('token',data.token);
Cookies.set('name', data.name);
debugger;
window.location.href = "/"
} }
}).fail(function (data) { }).fail(function (data) {