diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php
index bc2003f..a7c7fe5 100644
--- a/app/Http/Controllers/UserController.php
+++ b/app/Http/Controllers/UserController.php
@@ -13,6 +13,7 @@ use Illuminate\Support\Facades\Auth;
class UserController extends Controller
{
public function create(Request $request) {
+ Log::("it works")
$validated = $request->validate([
'name' => 'required',
'email' => 'required|email|unique:users',
diff --git a/resources/images/black-circle.svg b/resources/images/black-circle.svg
new file mode 100644
index 0000000..9f79f0d
--- /dev/null
+++ b/resources/images/black-circle.svg
@@ -0,0 +1,45 @@
+
+
+
diff --git a/resources/images/check-mark.svg b/resources/images/check-mark.svg
new file mode 100644
index 0000000..3e53d08
--- /dev/null
+++ b/resources/images/check-mark.svg
@@ -0,0 +1,45 @@
+
+
+
+
diff --git a/resources/images/dot-grid.png b/resources/images/dot-grid.png
new file mode 100644
index 0000000..0ab1ef2
Binary files /dev/null and b/resources/images/dot-grid.png differ
diff --git a/resources/images/green-check.svg b/resources/images/green-check.svg
new file mode 100644
index 0000000..75b191a
--- /dev/null
+++ b/resources/images/green-check.svg
@@ -0,0 +1 @@
+
diff --git a/resources/js/main.js b/resources/js/main.js
index 3f62ee9..1a050cf 100644
--- a/resources/js/main.js
+++ b/resources/js/main.js
@@ -26,6 +26,7 @@ function getToken() {
}).then( () => {
token = getCookie('XSRF-TOKEN')
})
+ app.token = token
}
function login(event) {
@@ -65,6 +66,8 @@ if (!token) {getToken()}
if (window.location.pathname == '/') {
document.getElementById('nav_toggle').addEventListener('click', toggleNav)
document.getElementById('login_form').addEventListener('submit', login)
+ app.token = token
+ // console.log(app.token)
// console.log(app.$data.active)
//Triggers for registration menu
diff --git a/resources/js/register-area/register-area.vue b/resources/js/register-area/register-area.vue
index a7d6aa4..6aa5a12 100644
--- a/resources/js/register-area/register-area.vue
+++ b/resources/js/register-area/register-area.vue
@@ -57,11 +57,11 @@
fetch("/register", {
method: 'POST',
headers: {'Content-Type': 'application/json',
- 'X-XSRF-TOKEN': window.token},
+ 'X-XSRF-TOKEN': this.token},
body: JSON.stringify({"name": document.getElementById("register-name").value,
"email": document.getElementById("register-email").value,
- "password": document.getElementById("register-password").value}),
- "password_confirmation": document.getElementById("confirm-password").value})
+ "password": document.getElementById("register-password").value,
+ "password_confirmation": document.getElementById("confirm-password").value})})
.then(response => {
//Give completed or error
if (response.ok) {
@@ -71,7 +71,7 @@
this.errorMessage = response.statusText
this.active = 'error'
}
- console.log(response.json())
+ console.log(response)
});
event.preventDefault();
}
@@ -89,7 +89,7 @@
module.exports = {
data() {
- return {active: 'register'}
+ return {active: 'register', token: ''}
},
methods: {
register,
diff --git a/resources/scss/main.scss b/resources/scss/main.scss
index 15f15e8..50d0602 100644
--- a/resources/scss/main.scss
+++ b/resources/scss/main.scss
@@ -44,11 +44,15 @@ ul {
}
li {
+ padding-bottom: 8px;
&:before {
- content: url("/images/green-check.svg");
- margin-right: 4px;
+ width: 30px;
+ height: 30px;
+ content: url("../images/green-check.svg");
+ display: inline;
+ margin-right: 5px;
+ // top: 30px;
}
- padding-bottom: 8px;
}
a {
@@ -206,8 +210,8 @@ form.login .login-btn {
}
div.blue-background {
- background-image: url("/images/polka-dots.png");
- background-size: 350px;
+ background-image: url("../images/black-circle.svg");
+ background-size: 10px;
background-color: #0d324d;
}
diff --git a/routes/web.php b/routes/web.php
index 3104d45..d279f56 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -41,6 +41,7 @@ Route::post('/resend-verification', function (Request $request) {
})->middleware(['auth', 'throttle:6,1'])->name('verification.send');
Route::post('/register', [UserController::class, 'create']);
+Route::view('/register', 'home');
Route::get('/forgot-password', function () {
return view('request-reset');