Skip to content
Snippets Groups Projects
Commit e6ba5636 authored by SARPCAN ERCAN's avatar SARPCAN ERCAN :hourglass_flowing_sand:
Browse files

fix CSRF

parent 6d643a08
Branches
No related merge requests found
......@@ -15,7 +15,6 @@ class CreateUserEloquentsTable extends Migration
{
Schema::create('UserEloquent', function (Blueprint $table) {
$table->id('user_id');
$table->primary('user_id');
$table->string('user')->unique();
$table->string('password', 256);
});
......
No preview for this file type
......@@ -3,6 +3,7 @@
@section("content")
<h1>Change password</h1>
<form action="{{route('changepassword')}}" method="post">
@csrf
<label for="newpassword">New password</label> <input type="password" id="newpassword" name="newpassword" required>
<label for="confirmpassword">Confirm password</label><input type="password" id="confirmpassword" name="confirmpassword" required>
<input type="submit" value="Change my password">
......
......@@ -4,6 +4,7 @@
@section("content")
<h1>Signin</h1>
<form action="{{route('authenticate')}}" method="post">
@csrf
<label for="login">Login</label> <input type="text" id="login" name="login" required autofocus>
<label for="password">Password</label><input type="password" id="password" name="password" required>
<input type="submit" value="Signin">
......
......@@ -3,6 +3,7 @@
@section("content")
<h1>Signup</h1>
<form action="{{route('adduser')}}" method="post">
@csrf
<label for="login">Login</label> <input type="text" id="login" name="login" required autofocus>
<label for="password">Password</label> <input type="password" id="password" name="password" required>
<label for="confirm">Confirm password</label><input type="password" id="confirm" name="confirm" required>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment