Fixes and implementation of forgot password
This commit is contained in:
parent
2814490a8a
commit
c074f32bbe
|
@ -202,4 +202,18 @@ class UserController extends Controller
|
|||
|
||||
return redirect()->route("root.index");
|
||||
}
|
||||
|
||||
/*******************************************/
|
||||
/* Forgot password */
|
||||
/*******************************************/
|
||||
|
||||
public function showForgot(){
|
||||
return Response::detect('users.forgot');
|
||||
}
|
||||
|
||||
public function forgot(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -77,6 +77,26 @@ input.appinput {
|
|||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.appinput::-moz-placeholder {
|
||||
opacity: 1;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.appinput:-ms-input-placeholder {
|
||||
opacity: 1;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.appinput::-ms-input-placeholder {
|
||||
opacity: 1;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.appinput::placeholder {
|
||||
opacity: 1;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.d-flex {
|
||||
display: flex;
|
||||
}
|
||||
|
|
|
@ -77,6 +77,26 @@ input.appinput {
|
|||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.appinput::-moz-placeholder {
|
||||
opacity: 1;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.appinput:-ms-input-placeholder {
|
||||
opacity: 1;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.appinput::-ms-input-placeholder {
|
||||
opacity: 1;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.appinput::placeholder {
|
||||
opacity: 1;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.d-flex {
|
||||
display: flex;
|
||||
}
|
||||
|
|
|
@ -55,3 +55,8 @@ input.appinput {
|
|||
line-height: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.appinput::placeholder {
|
||||
opacity: 1;
|
||||
color: white;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
@extends("app.layout.base")
|
||||
|
||||
@section("title")
|
||||
Login
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<main style="background-color: #00788a; height: 100%;">
|
||||
<div class="brand">
|
||||
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
|
||||
</div>
|
||||
<form action="" method="post">
|
||||
@csrf
|
||||
<input class="appinput" type="email" name="email" placeholder="Email" required>
|
||||
<input class="btn btn-dark" type="submit" value="Send reset mail">
|
||||
</form>
|
||||
</main>
|
||||
@endsection
|
|
@ -1,4 +1,4 @@
|
|||
@extends("app.layout.base")
|
||||
@extends("user.layout.base")
|
||||
|
||||
@section("title")
|
||||
Login
|
||||
|
@ -20,8 +20,7 @@
|
|||
</span>
|
||||
</label>
|
||||
<input class="btn btn-dark" type="submit" value="Sign in">
|
||||
<button class="btn" onclick="window.location = '';">Sign up</button>
|
||||
</form>
|
||||
<a class="text-white text-center" href="">Forgot password?</a>
|
||||
<a class="text-white text-center" href="{{ route('users.show-forgot') }}">Forgot password?</a>
|
||||
</main>
|
||||
@endsection
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
@extends("user.layout.base")
|
||||
|
||||
@section("title")
|
||||
Login
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<main style="background-color: #00788a; height: 100%;">
|
||||
<div class="brand">
|
||||
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
|
||||
</div>
|
||||
<form action="" method="post">
|
||||
@csrf
|
||||
<input class="appinput" type="email" name="email" placeholder="Email" required>
|
||||
<input class="btn btn-dark" type="submit" value="Send reset mail">
|
||||
</form>
|
||||
</main>
|
||||
@endsection
|
|
@ -1,4 +1,4 @@
|
|||
@extends("app.layout.base")
|
||||
@extends("user.layout.base")
|
||||
|
||||
@section("title")
|
||||
Login
|
||||
|
@ -19,8 +19,7 @@
|
|||
</span>
|
||||
</label>
|
||||
<input class="btn btn-dark" type="submit" value="Sign in">
|
||||
<button class="btn" onclick="window.location = '';">Sign up</button>
|
||||
</form>
|
||||
<a class="text-white text-center" href="">Forgot password?</a>
|
||||
<a class="text-white text-center" href="{{ route('users.show-forgot') }}">Forgot password?</a>
|
||||
</main>
|
||||
@endsection
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
@extends('layout.base')
|
||||
|
||||
@section("title")
|
||||
Opret Bruger
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div>
|
||||
<form action="{{ route("users.store") }}" method="post">
|
||||
@csrf
|
||||
|
||||
<label for="name_first">First Name</label>
|
||||
<input id="name_first" type="text" name="name_first">
|
||||
|
||||
<label for="name_last">Last Name</label>
|
||||
<input id="name_last" type="text" name="name_last">
|
||||
|
||||
<label for="email">Email</label>
|
||||
<input id="email" type="email" name="email">
|
||||
|
||||
<label for="password">Password</label>
|
||||
<input id="password" type="password" name="password">
|
||||
|
||||
<input type="submit" value="Opret">
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>@yield("title")</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link type="text/css" rel="stylesheet" href="{{ mix("/css/webapp.css") }}">
|
||||
</head>
|
||||
<body>
|
||||
@yield("content")
|
||||
|
||||
<script src="{{ mix("/js/app.js") }}"></script>
|
||||
@yield("scripts")
|
||||
</body>
|
||||
</html>
|
|
@ -1,100 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Laravel</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
|
||||
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
html, body {
|
||||
background-color: #fff;
|
||||
color: #636b6f;
|
||||
font-family: 'Nunito', sans-serif;
|
||||
font-weight: 200;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.full-height {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.position-ref {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.top-right {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 18px;
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 84px;
|
||||
}
|
||||
|
||||
.links > a {
|
||||
color: #636b6f;
|
||||
padding: 0 25px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
letter-spacing: .1rem;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.m-b-md {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex-center position-ref full-height">
|
||||
@if (Route::has('login'))
|
||||
<div class="top-right links">
|
||||
@auth
|
||||
<a href="{{ url('/home') }}">Home</a>
|
||||
@else
|
||||
<a href="{{ route('login') }}">Login</a>
|
||||
|
||||
@if (Route::has('register'))
|
||||
<a href="{{ route('register') }}">Register</a>
|
||||
@endif
|
||||
@endauth
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="content">
|
||||
<div class="title m-b-md">
|
||||
Laravel
|
||||
</div>
|
||||
|
||||
<div class="links">
|
||||
<a href="https://laravel.com/docs">Docs</a>
|
||||
<a href="https://laracasts.com">Laracasts</a>
|
||||
<a href="https://laravel-news.com">News</a>
|
||||
<a href="https://blog.laravel.com">Blog</a>
|
||||
<a href="https://nova.laravel.com">Nova</a>
|
||||
<a href="https://forge.laravel.com">Forge</a>
|
||||
<a href="https://vapor.laravel.com">Vapor</a>
|
||||
<a href="https://github.com/laravel/laravel">GitHub</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -23,7 +23,8 @@ Route::get("/", "RootController@index")->name("root.index");
|
|||
Route::get("/login", "UserController@showLogin")->name("users.show-login");
|
||||
Route::post("/login", "UserController@login")->name("users.login");
|
||||
Route::get("/logout", "UserController@logout")->name("users.logout");
|
||||
|
||||
Route::get("/forgot", "UserController@showForgot")->name("users.show-forgot");
|
||||
Route::post("/forgot", "UserController@forgot")->name("users.forgot");
|
||||
|
||||
Route::get("phones", "PhoneController@index")->name("phones.index");
|
||||
|
||||
|
|
Loading…
Reference in New Issue