1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 14:10:37 +02:00

Very rough implementation of forgot password

This commit is contained in:
Toby Zerner
2015-05-26 11:14:06 +09:30
parent d481a38029
commit feb4676aa0
18 changed files with 376 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
Hey {{ $username }}!
Click here to reset your password: {{ $url }}

43
views/reset.blade.php Normal file
View File

@@ -0,0 +1,43 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Reset Your Password</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
</head>
<body>
<h1>Reset Your Password</h1>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form class="form-horizontal" role="form" method="POST" action="{{ route('flarum.forum.savePassword') }}">
<input type="hidden" name="token" value="{{ $token }}">
<div class="form-group">
<label class="control-label">Password</label>
<input type="password" class="form-control" name="password">
</div>
<div class="form-group">
<label class="control-label">Confirm Password</label>
<input type="password" class="form-control" name="password_confirmation">
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Reset Password</button>
</div>
</form>
</body>
</html>