-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from DDynamic/development
Migrate ability to reset passwords
- Loading branch information
Showing
7 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@extends('layouts.master') | ||
|
||
@section('title', 'Reset Password') | ||
|
||
|
||
@section('right-nav') | ||
@endsection | ||
|
||
@section('sidebar') | ||
@endsection | ||
|
||
@section('content') | ||
<div class="col-md-6"> | ||
<form action="/auth/password" method="POST"> | ||
<legend>{{ trans('auth.resetpassword') }}</legend> | ||
<fieldset> | ||
@if (count($errors) > 0) | ||
<div class="alert alert-danger"> | ||
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('auth.errorencountered') }}<br><br> | ||
<ul> | ||
@foreach ($errors->all() as $error) | ||
<li>{{ $error }}</li> | ||
@endforeach | ||
</ul> | ||
</div> | ||
@endif | ||
@if (session('status')) | ||
<div class="alert alert-success"> | ||
<strong>{{ trans('strings.success') }}!</strong> {{ trans('auth.emailsent') }} | ||
</div> | ||
@endif | ||
<div class="form-group"> | ||
<label for="email" class="control-label">{{ trans('strings.email') }}</label> | ||
<div> | ||
<input type="text" class="form-control" name="email" id="email" value="{{ old('email') }}" placeholder="{{ trans('strings.email') }}" /> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div> | ||
{!! csrf_field() !!} | ||
<button class="btn btn-default btn-sm">{{ trans('auth.sendlink') }}</button> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> | ||
<div class="col-md-3"></div> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
@extends('layouts.master') | ||
|
||
@section('title', 'Reset Password') | ||
|
||
|
||
@section('right-nav') | ||
@endsection | ||
|
||
@section('sidebar') | ||
@endsection | ||
|
||
@section('content') | ||
<div class="col-md-6"> | ||
<form action="/auth/password/verify" method="POST"> | ||
<legend>{{ trans('auth.resetpassword') }}</legend> | ||
<fieldset> | ||
@if (count($errors) > 0) | ||
<div class="alert alert-danger"> | ||
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('auth.errorencountered') }}<br><br> | ||
<ul> | ||
@foreach ($errors->all() as $error) | ||
<li>{{ $error }}</li> | ||
@endforeach | ||
</ul> | ||
</div> | ||
@endif | ||
<input type="hidden" name="token" value="{{ $token }}"> | ||
<div class="form-group"> | ||
<label for="email" class="control-label">{{ trans('strings.email') }}</label> | ||
<div> | ||
<input type="text" class="form-control" name="email" id="email" value="{{ old('email') }}" placeholder="{{ trans('strings.email') }}" /> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="control-label">{{ trans('strings.password') }}</label> | ||
<div> | ||
<input type="password" class="form-control" name="password" id="password" placeholder="{{ trans('strings.password') }}" /> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password_confirmation" class="control-label">{{ trans('auth.confirmpassword') }}</label> | ||
<div> | ||
<input type="password" class="form-control" id="password_confirmation" name="password_confirmation" /> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div> | ||
{!! csrf_field() !!} | ||
<button class="btn btn-primary btn-sm">{{ trans('auth.resetpassword') }}</button> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> | ||
<div class="col-md-3"></div> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
<html> | ||
<head> | ||
<title>Pterodactyl Lost Password Recovery</title> | ||
</head> | ||
<body> | ||
<center><h1>Pterodactyl Lost Password Recovery</h1></center> | ||
<p>Hello there! You are receiving this email because you requested a new password for your Pterodactyl account.</p> | ||
<p>Please click the link below to confirm that you wish to change your password. If you did not make this request, or do not wish to continue simply ignore this email and nothing will happen. <strong>This link will expire in 1 hour.</strong></p> | ||
<p><a href="{{ url('auth/password/verify/'.$token) }}">{{ url('auth/password/verify/'.$token) }}</a></p> | ||
<p>Please do not hesitate to contact us if you belive something is wrong. | ||
<p>Thanks!<br />Pterodactyl</p> | ||
</body> | ||
</html> |