diff --git a/Changelog b/Changelog index 066e3415c..543762c5b 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-03-29 DariusIII + * Chg: Update themes and use ForgottenPasswordController * Chg: Remove login/register pages, use Login/Register controllers completely 2018-03-28 DariusIII * Chg: Update laravel/framework to version 5.6.14 diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php index 6a247fefd..4b52379d7 100644 --- a/app/Http/Controllers/Auth/ForgotPasswordController.php +++ b/app/Http/Controllers/Auth/ForgotPasswordController.php @@ -3,7 +3,12 @@ namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; +use App\Mail\ForgottenPassword; +use App\Mail\PasswordReset; +use App\Models\Settings; +use App\Models\User; use Illuminate\Foundation\Auth\SendsPasswordResetEmails; +use Illuminate\Support\Facades\Mail; class ForgotPasswordController extends Controller { @@ -29,4 +34,93 @@ class ForgotPasswordController extends Controller { $this->middleware('guest'); } + + public function showLinkRequestForm() + { + $action = request()->input('action') ?? 'view'; + + $email = $rssToken = $sent = $confirmed = ''; + + switch ($action) { + case 'reset': + if (! request()->has('guid')) { + app('smarty.view')->assign('error', 'No reset code provided.'); + break; + } + + $ret = User::getByPassResetGuid(request()->input('guid')); + if (! $ret) { + app('smarty.view')->assign('error', 'Bad reset code provided.'); + break; + } + + // + // reset the password, inform the user, send out the email + // + User::updatePassResetGuid($ret['id'], ''); + $newpass = User::generatePassword(); + User::updatePassword($ret['id'], $newpass); + + $to = $ret['email']; + $onscreen = 'Your password has been reset to '.$newpass.' and sent to your e-mail address.'; + Mail::to($to)->send(new PasswordReset($ret['id'], $newpass)); + app('smarty.view')->assign('notice', $onscreen); + $confirmed = true; + break; + + break; + case 'submit': + $email = request()->input('email') ?? ''; + $rssToken = request()->input('apikey') ?? ''; + if (empty($email) && empty($rssToken)) { + app('smarty.view')->assign('error', 'Missing parameter(email and/or apikey to send password reset'); + } else { + // + // Check users exists and send an email + // + $ret = ! empty($rssToken) ? User::getByRssToken($rssToken) : User::getByEmail($email); + if ($ret === null) { + app('smarty.view')->assign('error', 'The email or apikey are not recognised.'); + $sent = true; + break; + } + // + // Generate a forgottenpassword guid, store it in the user table + // + $guid = md5(uniqid('', false)); + User::updatePassResetGuid($ret['id'], $guid); + // + // Send the email + // + $resetLink = request()->server('SERVER_NAME').'/forgottenpassword?action=reset&guid='.$guid; + //Mail::to($ret['email'])->send(new ForgottenPassword($resetLink)); + $sent = true; + break; + } + break; + } + $theme = Settings::settingValue('site.main.style'); + + $title = 'Forgotten Password'; + $meta_title = 'Forgotten Password'; + $meta_keywords = 'forgotten,password,signup,registration'; + $meta_description = 'Forgotten Password'; + + $content = app('smarty.view')->fetch($theme.'/forgottenpassword.tpl'); + + app('smarty.view')->assign( + [ + 'content' => $content, + 'title' => $title, + 'meta_title' => $meta_title, + 'meta_keywords' => $meta_keywords, + 'meta_description' => $meta_description, + 'email' => $email, + 'apikey' => $rssToken, + 'confirmed' => $confirmed, + 'sent' => $sent, + ] + ); + app('smarty.view')->display($theme.'/basepage.tpl'); + } } diff --git a/public/index.php b/public/index.php index 149d43326..8ae7d11f7 100644 --- a/public/index.php +++ b/public/index.php @@ -37,7 +37,6 @@ switch ($page->page) { case 'content': case 'details': case 'filelist': - case 'forgottenpassword': case 'forum': case 'forumpost': case 'games': diff --git a/resources/views/themes/Charisma/forum.tpl b/resources/views/themes/Charisma/forum.tpl index 5b1689fd4..aa5e36fe3 100755 --- a/resources/views/themes/Charisma/forum.tpl +++ b/resources/views/themes/Charisma/forum.tpl @@ -1,4 +1,4 @@ -

{if $page->title !=''}{$page->title}{else}Forum{/if}

+

{if $title !=''}{$title}{else}Forum{/if}

{if $results|@count > 0}
{$pager} diff --git a/resources/views/themes/Charisma/sitemap.tpl b/resources/views/themes/Charisma/sitemap.tpl index 2b5bd31c3..f9735975d 100755 --- a/resources/views/themes/Charisma/sitemap.tpl +++ b/resources/views/themes/Charisma/sitemap.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{foreach $sitemaps as $sitemap} {if $last_type != $sitemap->type} diff --git a/resources/views/themes/Charisma/terms.tpl b/resources/views/themes/Charisma/terms.tpl index fb3634aea..e488aa390 100755 --- a/resources/views/themes/Charisma/terms.tpl +++ b/resources/views/themes/Charisma/terms.tpl @@ -1,9 +1,9 @@
-

View > {$page->title}

+

View > {$title}

diff --git a/resources/views/themes/Charisma/viewfilelist.tpl b/resources/views/themes/Charisma/viewfilelist.tpl index 2e8b66628..07c1c4eda 100755 --- a/resources/views/themes/Charisma/viewfilelist.tpl +++ b/resources/views/themes/Charisma/viewfilelist.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

diff --git a/resources/views/themes/Charisma/viewmovie.tpl b/resources/views/themes/Charisma/viewmovie.tpl index 381250738..e2ed3c932 100755 --- a/resources/views/themes/Charisma/viewmovie.tpl +++ b/resources/views/themes/Charisma/viewmovie.tpl @@ -1,5 +1,5 @@ {if not $modal} -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

diff --git a/resources/views/themes/Charisma/viewxxx.tpl b/resources/views/themes/Charisma/viewxxx.tpl index 7439a458f..47f49760a 100755 --- a/resources/views/themes/Charisma/viewxxx.tpl +++ b/resources/views/themes/Charisma/viewxxx.tpl @@ -1,5 +1,5 @@ {if not $modal} -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

diff --git a/resources/views/themes/Gamma/contact.tpl b/resources/views/themes/Gamma/contact.tpl index 75e779184..0d1b3d033 100755 --- a/resources/views/themes/Gamma/contact.tpl +++ b/resources/views/themes/Gamma/contact.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

Getting in touch

{$msg}{* This is a message that appears if a email is sent. *} {if $msg == ""} diff --git a/resources/views/themes/Gamma/forgottenpassword.tpl b/resources/views/themes/Gamma/forgottenpassword.tpl index 0b714d6c8..cbb512ca5 100755 --- a/resources/views/themes/Gamma/forgottenpassword.tpl +++ b/resources/views/themes/Gamma/forgottenpassword.tpl @@ -6,7 +6,7 @@ border: 1px solid #e1e1e8; -moz-border-radius: 4px; border-radius: 4px; "> -

{$page->title}

+

{$title}

Please enter the email address you used to register and we will send an email to reset your password. If you cannot remember your email, or no longer have access to it, please contact us.

diff --git a/resources/views/themes/Gamma/forum.tpl b/resources/views/themes/Gamma/forum.tpl index f25ed41b7..450f95eca 100755 --- a/resources/views/themes/Gamma/forum.tpl +++ b/resources/views/themes/Gamma/forum.tpl @@ -1,4 +1,4 @@ -

{if $page->title !=''}{$page->title}{else}Forum{/if}

+

{if $title !=''}{$title}{else}Forum{/if}

{if $results|@count > 0}
{$pager} diff --git a/resources/views/themes/Gamma/mymovies.tpl b/resources/views/themes/Gamma/mymovies.tpl index f9cf126dc..bf5e27137 100755 --- a/resources/views/themes/Gamma/mymovies.tpl +++ b/resources/views/themes/Gamma/mymovies.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

Movies List diff --git a/resources/views/themes/Gamma/myshows.tpl b/resources/views/themes/Gamma/myshows.tpl index 0cb0293cb..069afaf63 100755 --- a/resources/views/themes/Gamma/myshows.tpl +++ b/resources/views/themes/Gamma/myshows.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

Series List diff --git a/resources/views/themes/Gamma/sitemap.tpl b/resources/views/themes/Gamma/sitemap.tpl index 307b39b05..95f021964 100755 --- a/resources/views/themes/Gamma/sitemap.tpl +++ b/resources/views/themes/Gamma/sitemap.tpl @@ -1,5 +1,5 @@
{foreach $sitemaps as $sitemap} diff --git a/resources/views/themes/Gamma/terms.tpl b/resources/views/themes/Gamma/terms.tpl index b6edd6c9b..0833132f2 100755 --- a/resources/views/themes/Gamma/terms.tpl +++ b/resources/views/themes/Gamma/terms.tpl @@ -1,4 +1,4 @@ {$site->tandc} \ No newline at end of file diff --git a/resources/views/themes/Gamma/viewanimelist.tpl b/resources/views/themes/Gamma/viewanimelist.tpl index e498e871e..c99974efe 100755 --- a/resources/views/themes/Gamma/viewanimelist.tpl +++ b/resources/views/themes/Gamma/viewanimelist.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

Jump to: diff --git a/resources/views/themes/Gamma/viewfilelist.tpl b/resources/views/themes/Gamma/viewfilelist.tpl index e608f4a1c..76dcf30d3 100755 --- a/resources/views/themes/Gamma/viewfilelist.tpl +++ b/resources/views/themes/Gamma/viewfilelist.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}


diff --git a/resources/views/themes/Gamma/viewmovie.tpl b/resources/views/themes/Gamma/viewmovie.tpl index 3688ef878..1a177202f 100755 --- a/resources/views/themes/Gamma/viewmovie.tpl +++ b/resources/views/themes/Gamma/viewmovie.tpl @@ -1,5 +1,5 @@ {if not $modal} -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

{/if} {if $movie.backdrop == 1}
{/if} diff --git a/resources/views/themes/Gamma/viewnfo.tpl b/resources/views/themes/Gamma/viewnfo.tpl index 55a2fc5e3..348508a74 100755 --- a/resources/views/themes/Gamma/viewnfo.tpl +++ b/resources/views/themes/Gamma/viewnfo.tpl @@ -1,6 +1,6 @@ {if !isset($modal)}

For {$rel.searchname|escape:'htmlall'}

{/if} diff --git a/resources/views/themes/Gamma/viewserieslist.tpl b/resources/views/themes/Gamma/viewserieslist.tpl index 59992cd1a..c1f44c4fd 100755 --- a/resources/views/themes/Gamma/viewserieslist.tpl +++ b/resources/views/themes/Gamma/viewserieslist.tpl @@ -1,5 +1,5 @@ -

{$page->title}

+

{$title}

diff --git a/resources/views/themes/Gamma/viewxxx.tpl b/resources/views/themes/Gamma/viewxxx.tpl index 3f058b48d..c2bcb1bd8 100755 --- a/resources/views/themes/Gamma/viewxxx.tpl +++ b/resources/views/themes/Gamma/viewxxx.tpl @@ -1,5 +1,5 @@ {if not $modal} -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

{/if} {if $movie.backdrop == 1}
{/if} diff --git a/resources/views/themes/Gentele/forum.tpl b/resources/views/themes/Gentele/forum.tpl index c7b205f14..8e3a21b9f 100755 --- a/resources/views/themes/Gentele/forum.tpl +++ b/resources/views/themes/Gentele/forum.tpl @@ -1,5 +1,5 @@
-

{if $page->title !=''}{$page->title}{else}Forum{/if}

+

{if $title !=''}{$title}{else}Forum{/if}

{if $results|@count > 0}
{$pager} diff --git a/resources/views/themes/Gentele/sitemap.tpl b/resources/views/themes/Gentele/sitemap.tpl index 2b5bd31c3..f9735975d 100755 --- a/resources/views/themes/Gentele/sitemap.tpl +++ b/resources/views/themes/Gentele/sitemap.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{foreach $sitemaps as $sitemap} {if $last_type != $sitemap->type} diff --git a/resources/views/themes/Gentele/terms.tpl b/resources/views/themes/Gentele/terms.tpl index f3a53f50e..f43b7a7a7 100755 --- a/resources/views/themes/Gentele/terms.tpl +++ b/resources/views/themes/Gentele/terms.tpl @@ -8,11 +8,11 @@
-

View > {$page->title}

+

View > {$title}

diff --git a/resources/views/themes/Gentele/viewfilelist.tpl b/resources/views/themes/Gentele/viewfilelist.tpl index 9edb65d2e..e5a2de14c 100755 --- a/resources/views/themes/Gentele/viewfilelist.tpl +++ b/resources/views/themes/Gentele/viewfilelist.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

diff --git a/resources/views/themes/Gentele/viewmovie.tpl b/resources/views/themes/Gentele/viewmovie.tpl index 5a6cd82bf..a4e8394a7 100755 --- a/resources/views/themes/Gentele/viewmovie.tpl +++ b/resources/views/themes/Gentele/viewmovie.tpl @@ -1,5 +1,5 @@ {if not $modal} -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

diff --git a/resources/views/themes/Gentele/viewxxx.tpl b/resources/views/themes/Gentele/viewxxx.tpl index 7439a458f..47f49760a 100755 --- a/resources/views/themes/Gentele/viewxxx.tpl +++ b/resources/views/themes/Gentele/viewxxx.tpl @@ -1,5 +1,5 @@ {if not $modal} -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

diff --git a/resources/views/themes/Omicron/forum.tpl b/resources/views/themes/Omicron/forum.tpl index 632a9722b..43e44ce2a 100755 --- a/resources/views/themes/Omicron/forum.tpl +++ b/resources/views/themes/Omicron/forum.tpl @@ -1,5 +1,5 @@
-

{if $page->title !=''}{$page->title}{else}Forum{/if}

+

{if $title !=''}{$title}{else}Forum{/if}

{if $results|@count > 0}
{$pager} diff --git a/resources/views/themes/Omicron/sitemap.tpl b/resources/views/themes/Omicron/sitemap.tpl index 2b5bd31c3..f9735975d 100755 --- a/resources/views/themes/Omicron/sitemap.tpl +++ b/resources/views/themes/Omicron/sitemap.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{foreach $sitemaps as $sitemap} {if $last_type != $sitemap->type} diff --git a/resources/views/themes/Omicron/terms.tpl b/resources/views/themes/Omicron/terms.tpl index f3a53f50e..f43b7a7a7 100755 --- a/resources/views/themes/Omicron/terms.tpl +++ b/resources/views/themes/Omicron/terms.tpl @@ -8,11 +8,11 @@
-

View > {$page->title}

+

View > {$title}

diff --git a/resources/views/themes/Omicron/viewfilelist.tpl b/resources/views/themes/Omicron/viewfilelist.tpl index 15863cf57..a8bf92105 100755 --- a/resources/views/themes/Omicron/viewfilelist.tpl +++ b/resources/views/themes/Omicron/viewfilelist.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

diff --git a/resources/views/themes/Omicron/viewmovie.tpl b/resources/views/themes/Omicron/viewmovie.tpl index 5a6cd82bf..a4e8394a7 100755 --- a/resources/views/themes/Omicron/viewmovie.tpl +++ b/resources/views/themes/Omicron/viewmovie.tpl @@ -1,5 +1,5 @@ {if not $modal} -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

diff --git a/resources/views/themes/Omicron/viewxxx.tpl b/resources/views/themes/Omicron/viewxxx.tpl index 7439a458f..47f49760a 100755 --- a/resources/views/themes/Omicron/viewxxx.tpl +++ b/resources/views/themes/Omicron/viewxxx.tpl @@ -1,5 +1,5 @@ {if not $modal} -

{$page->title}

+

{$title}

For {$rel.searchname|escape:'htmlall'}

diff --git a/resources/views/themes/admin/anidb-edit.tpl b/resources/views/themes/admin/anidb-edit.tpl index 8f3e51948..a8cdd2acf 100644 --- a/resources/views/themes/admin/anidb-edit.tpl +++ b/resources/views/themes/admin/anidb-edit.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

diff --git a/resources/views/themes/admin/anidb-list.tpl b/resources/views/themes/admin/anidb-list.tpl index 7e5de717a..cb11f31fd 100644 --- a/resources/views/themes/admin/anidb-list.tpl +++ b/resources/views/themes/admin/anidb-list.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{if $anidblist} diff --git a/resources/views/themes/admin/anidb-remove.tpl b/resources/views/themes/admin/anidb-remove.tpl index 8a603813f..547bc9fdd 100644 --- a/resources/views/themes/admin/anidb-remove.tpl +++ b/resources/views/themes/admin/anidb-remove.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

Removing AniDB ID {$anidbid} from releases: {if $success = true}Succeeded.{/if} {if $success = false}Failed.{/if} \ No newline at end of file diff --git a/resources/views/themes/admin/binaryblacklist-edit.tpl b/resources/views/themes/admin/binaryblacklist-edit.tpl index bd13e3ff3..eeb681832 100644 --- a/resources/views/themes/admin/binaryblacklist-edit.tpl +++ b/resources/views/themes/admin/binaryblacklist-edit.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{if isset($error) && $error != ''}
{$error}
{/if} diff --git a/resources/views/themes/admin/binaryblacklist-list.tpl b/resources/views/themes/admin/binaryblacklist-list.tpl index 98079e79d..c3a03f7eb 100644 --- a/resources/views/themes/admin/binaryblacklist-list.tpl +++ b/resources/views/themes/admin/binaryblacklist-list.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

Binaries can be prevented from being added to the index at all if they match a regex provided in the blacklist. diff --git a/resources/views/themes/admin/book-edit.tpl b/resources/views/themes/admin/book-edit.tpl index 8495ce668..1bc667ea0 100644 --- a/resources/views/themes/admin/book-edit.tpl +++ b/resources/views/themes/admin/book-edit.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

diff --git a/resources/views/themes/admin/book-list.tpl b/resources/views/themes/admin/book-list.tpl index 6883fde21..65e3448ba 100644 --- a/resources/views/themes/admin/book-list.tpl +++ b/resources/views/themes/admin/book-list.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{if $booklist} diff --git a/resources/views/themes/admin/category-edit.tpl b/resources/views/themes/admin/category-edit.tpl index 848a52f13..bc6b93eb9 100644 --- a/resources/views/themes/admin/category-edit.tpl +++ b/resources/views/themes/admin/category-edit.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{if isset($error) && $error != ''}
{$error}
diff --git a/resources/views/themes/admin/category-list.tpl b/resources/views/themes/admin/category-list.tpl index 24270989b..97585019a 100644 --- a/resources/views/themes/admin/category-list.tpl +++ b/resources/views/themes/admin/category-list.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

diff --git a/resources/views/themes/admin/category_regexes-edit.tpl b/resources/views/themes/admin/category_regexes-edit.tpl index b1930c714..dbecbccc6 100644 --- a/resources/views/themes/admin/category_regexes-edit.tpl +++ b/resources/views/themes/admin/category_regexes-edit.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{if isset($error) && $error != ''}
{$error}
{/if} diff --git a/resources/views/themes/admin/category_regexes-list.tpl b/resources/views/themes/admin/category_regexes-list.tpl index cc189088b..6a8460736 100644 --- a/resources/views/themes/admin/category_regexes-list.tpl +++ b/resources/views/themes/admin/category_regexes-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

This page lists regex used for categorizing releases.
You can recategorize all releases by running misc/update/update_releases.php 6 true

diff --git a/resources/views/themes/admin/collection_regexes-edit.tpl b/resources/views/themes/admin/collection_regexes-edit.tpl index 157155768..6a580ca4d 100644 --- a/resources/views/themes/admin/collection_regexes-edit.tpl +++ b/resources/views/themes/admin/collection_regexes-edit.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{if isset($error) && $error != ''}
{$error}
{/if} diff --git a/resources/views/themes/admin/collection_regexes-list.tpl b/resources/views/themes/admin/collection_regexes-list.tpl index e589ca981..6a19d3e2d 100644 --- a/resources/views/themes/admin/collection_regexes-list.tpl +++ b/resources/views/themes/admin/collection_regexes-list.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

This page lists regex used for grouping usenet collections.

diff --git a/resources/views/themes/admin/collection_regexes-test.tpl b/resources/views/themes/admin/collection_regexes-test.tpl index cf272d754..bc5d965bd 100644 --- a/resources/views/themes/admin/collection_regexes-test.tpl +++ b/resources/views/themes/admin/collection_regexes-test.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

This page is used for testing regex for grouping usenet collections.
Enter the group name to test and a regex. Limit is how many collections to show max on the page, 0 for no limit(slow).

diff --git a/resources/views/themes/admin/comments-list.tpl b/resources/views/themes/admin/comments-list.tpl index 65edba26d..98f14d132 100644 --- a/resources/views/themes/admin/comments-list.tpl +++ b/resources/views/themes/admin/comments-list.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{if $commentslist} {$pager} diff --git a/resources/views/themes/admin/console-edit.tpl b/resources/views/themes/admin/console-edit.tpl index 15d400c0f..11b850851 100644 --- a/resources/views/themes/admin/console-edit.tpl +++ b/resources/views/themes/admin/console-edit.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

Go back diff --git a/resources/views/themes/admin/console-list.tpl b/resources/views/themes/admin/console-list.tpl index eedcdae67..f359ab586 100644 --- a/resources/views/themes/admin/console-list.tpl +++ b/resources/views/themes/admin/console-list.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

{if $consolelist} diff --git a/resources/views/themes/admin/content-add.tpl b/resources/views/themes/admin/content-add.tpl index b20232888..9ed8b37d7 100644 --- a/resources/views/themes/admin/content-add.tpl +++ b/resources/views/themes/admin/content-add.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Go back {{csrf_field()}} diff --git a/resources/views/themes/admin/content-list.tpl b/resources/views/themes/admin/content-list.tpl index f996870af..1a3ff5d14 100644 --- a/resources/views/themes/admin/content-list.tpl +++ b/resources/views/themes/admin/content-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

diff --git a/resources/views/themes/admin/failrel-list.tpl b/resources/views/themes/admin/failrel-list.tpl index 870621bc5..8677a214c 100644 --- a/resources/views/themes/admin/failrel-list.tpl +++ b/resources/views/themes/admin/failrel-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{if $releaselist} {$pager} diff --git a/resources/views/themes/admin/game-edit.tpl b/resources/views/themes/admin/game-edit.tpl index 1b231e252..7cad9b10c 100644 --- a/resources/views/themes/admin/game-edit.tpl +++ b/resources/views/themes/admin/game-edit.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Go back {{csrf_field()}} diff --git a/resources/views/themes/admin/game-list.tpl b/resources/views/themes/admin/game-list.tpl index 46fd0ab84..7374f4de1 100644 --- a/resources/views/themes/admin/game-list.tpl +++ b/resources/views/themes/admin/game-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{if $gamelist} {$pager}
ordinal
diff --git a/resources/views/themes/admin/group-bulk.tpl b/resources/views/themes/admin/group-bulk.tpl index 7df4fc85e..461738dfb 100644 --- a/resources/views/themes/admin/group-bulk.tpl +++ b/resources/views/themes/admin/group-bulk.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{if $groupmsglist}
diff --git a/resources/views/themes/admin/group-edit.tpl b/resources/views/themes/admin/group-edit.tpl index 77e9e0ee0..905bbf406 100644 --- a/resources/views/themes/admin/group-edit.tpl +++ b/resources/views/themes/admin/group-edit.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Go back diff --git a/resources/views/themes/admin/group-list.tpl b/resources/views/themes/admin/group-list.tpl index 2cd89e120..872ba79a3 100644 --- a/resources/views/themes/admin/group-list.tpl +++ b/resources/views/themes/admin/group-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Below is a list of all usenet groups available to be indexed. Click 'Activate' to start indexing a group. Backfill works independently of active. diff --git a/resources/views/themes/admin/index.tpl b/resources/views/themes/admin/index.tpl index f4bd86854..5e2f40bbd 100644 --- a/resources/views/themes/admin/index.tpl +++ b/resources/views/themes/admin/index.tpl @@ -1,5 +1,5 @@

-

{$page->title}

+

{$title}

diff --git a/resources/views/themes/admin/menu-edit.tpl b/resources/views/themes/admin/menu-edit.tpl index 37f413cb5..11c5ddd13 100644 --- a/resources/views/themes/admin/menu-edit.tpl +++ b/resources/views/themes/admin/menu-edit.tpl @@ -1,5 +1,5 @@

-

{$page->title}

+

{$title}

Go back {{csrf_field()}} diff --git a/resources/views/themes/admin/menu-list.tpl b/resources/views/themes/admin/menu-list.tpl index 2aa6befeb..ba060b0b9 100644 --- a/resources/views/themes/admin/menu-list.tpl +++ b/resources/views/themes/admin/menu-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{if $menulist}
diff --git a/resources/views/themes/admin/movie-add.tpl b/resources/views/themes/admin/movie-add.tpl index f64ee9434..c579352f1 100644 --- a/resources/views/themes/admin/movie-add.tpl +++ b/resources/views/themes/admin/movie-add.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{{csrf_field()}} diff --git a/resources/views/themes/admin/movie-edit.tpl b/resources/views/themes/admin/movie-edit.tpl index 757210822..fe10952cf 100644 --- a/resources/views/themes/admin/movie-edit.tpl +++ b/resources/views/themes/admin/movie-edit.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Go back diff --git a/resources/views/themes/admin/movie-list.tpl b/resources/views/themes/admin/movie-list.tpl index c24a26a10..b625be86f 100644 --- a/resources/views/themes/admin/movie-list.tpl +++ b/resources/views/themes/admin/movie-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{if $movielist} {$pager} diff --git a/resources/views/themes/admin/music-edit.tpl b/resources/views/themes/admin/music-edit.tpl index 225e0a3fd..aef56fa3d 100644 --- a/resources/views/themes/admin/music-edit.tpl +++ b/resources/views/themes/admin/music-edit.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Go back diff --git a/resources/views/themes/admin/music-list.tpl b/resources/views/themes/admin/music-list.tpl index ab9e609b0..bed946973 100644 --- a/resources/views/themes/admin/music-list.tpl +++ b/resources/views/themes/admin/music-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{if $musiclist} {$pager} diff --git a/resources/views/themes/admin/nzb-export.tpl b/resources/views/themes/admin/nzb-export.tpl index 902e3fe52..da7eb4464 100644 --- a/resources/views/themes/admin/nzb-export.tpl +++ b/resources/views/themes/admin/nzb-export.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Export nzbs from the system into a folder. Specify the full file path to a folder. diff --git a/resources/views/themes/admin/nzb-import.tpl b/resources/views/themes/admin/nzb-import.tpl index f14ef7a82..66fbe309e 100644 --- a/resources/views/themes/admin/nzb-import.tpl +++ b/resources/views/themes/admin/nzb-import.tpl @@ -1,5 +1,5 @@

-

{$page->title}

+

{$title}

Import NZB's from a folder or via the browser into the system. Specify the full file path to a folder containing NZB's. diff --git a/resources/views/themes/admin/posters-edit.tpl b/resources/views/themes/admin/posters-edit.tpl index 322292719..390b238bd 100644 --- a/resources/views/themes/admin/posters-edit.tpl +++ b/resources/views/themes/admin/posters-edit.tpl @@ -1,5 +1,5 @@

-

{$page->title}

+

{$title}

Go back {{csrf_field()}} diff --git a/resources/views/themes/admin/posters-list.tpl b/resources/views/themes/admin/posters-list.tpl index 419b96ba9..7c9546733 100644 --- a/resources/views/themes/admin/posters-list.tpl +++ b/resources/views/themes/admin/posters-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{if !empty($check)}

Below is a list of MultiGroup posters diff --git a/resources/views/themes/admin/predb.tpl b/resources/views/themes/admin/predb.tpl index 059959bb4..f9faee95f 100755 --- a/resources/views/themes/admin/predb.tpl +++ b/resources/views/themes/admin/predb.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

-

{$page->title}

+

{$title}

diff --git a/resources/views/themes/admin/sharing.tpl b/resources/views/themes/admin/sharing.tpl index 531789683..d3db9b914 100644 --- a/resources/views/themes/admin/sharing.tpl +++ b/resources/views/themes/admin/sharing.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

diff --git a/resources/views/themes/admin/show-edit.tpl b/resources/views/themes/admin/show-edit.tpl index 0194cd057..8d6054f89 100755 --- a/resources/views/themes/admin/show-edit.tpl +++ b/resources/views/themes/admin/show-edit.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Go back {{csrf_field()}} diff --git a/resources/views/themes/admin/show-list.tpl b/resources/views/themes/admin/show-list.tpl index e05fd84b0..7fa043564 100755 --- a/resources/views/themes/admin/show-list.tpl +++ b/resources/views/themes/admin/show-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{if $tvshowlist}
diff --git a/resources/views/themes/admin/show-remove.tpl b/resources/views/themes/admin/show-remove.tpl index 9d0fc41ef..579560297 100755 --- a/resources/views/themes/admin/show-remove.tpl +++ b/resources/views/themes/admin/show-remove.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Removing Videos\Episode ID {$videoid} from releases: {if $success = true}Succeeded.{/if} {if $success = false}Failed.{/if} diff --git a/resources/views/themes/admin/site-debug.tpl b/resources/views/themes/admin/site-debug.tpl index e7c6cfe26..250cb0a2c 100644 --- a/resources/views/themes/admin/site-debug.tpl +++ b/resources/views/themes/admin/site-debug.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Below is a dump of system settings and mysql table status to assist others in debuging problems. Items like private 3rd party keys have been removed, however *note* full paths to binaries and web files diff --git a/resources/views/themes/admin/site-edit.tpl b/resources/views/themes/admin/site-edit.tpl index 5e0440cf5..44177cf00 100644 --- a/resources/views/themes/admin/site-edit.tpl +++ b/resources/views/themes/admin/site-edit.tpl @@ -1,4 +1,4 @@ -

{$page->title}

+

{$title}

diff --git a/resources/views/themes/admin/site-stats.tpl b/resources/views/themes/admin/site-stats.tpl index d09058b0c..05eaa8979 100644 --- a/resources/views/themes/admin/site-stats.tpl +++ b/resources/views/themes/admin/site-stats.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{if $topgrabs|count > 0}

Top Grabbers

diff --git a/resources/views/themes/admin/tmux-edit.tpl b/resources/views/themes/admin/tmux-edit.tpl index 60e297710..502dd91da 100644 --- a/resources/views/themes/admin/tmux-edit.tpl +++ b/resources/views/themes/admin/tmux-edit.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{{csrf_field()}} diff --git a/resources/views/themes/admin/user-edit.tpl b/resources/views/themes/admin/user-edit.tpl index 00e8a6381..adb3df612 100644 --- a/resources/views/themes/admin/user-edit.tpl +++ b/resources/views/themes/admin/user-edit.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

{if isset($error) && $error != ''}
{$error}
{/if} diff --git a/resources/views/themes/admin/user-list.tpl b/resources/views/themes/admin/user-list.tpl index 61c9a75c4..faf1893da 100644 --- a/resources/views/themes/admin/user-list.tpl +++ b/resources/views/themes/admin/user-list.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

diff --git a/resources/views/themes/shared/apidesc.tpl b/resources/views/themes/shared/apidesc.tpl index 85693dbad..56428d10b 100755 --- a/resources/views/themes/shared/apidesc.tpl +++ b/resources/views/themes/shared/apidesc.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Here lives the documentation for the api for accessing nzb and index data. Api functions can be called by either logged in users, or by providing an apikey.


{if $loggedin=="true"} diff --git a/resources/views/themes/shared/rssdesc.tpl b/resources/views/themes/shared/rssdesc.tpl index db8cadf3d..c63edfab9 100755 --- a/resources/views/themes/shared/rssdesc.tpl +++ b/resources/views/themes/shared/rssdesc.tpl @@ -1,5 +1,5 @@
-

{$page->title}

+

{$title}

Here you can choose rss feeds from settings categories. The feeds will present either decriptions or downloads of Nzb files. diff --git a/routes/web.php b/routes/web.php index 10075bb83..3e2024378 100644 --- a/routes/web.php +++ b/routes/web.php @@ -33,13 +33,9 @@ Route::post('/login', 'Auth\LoginController@login'); Route::get('/register', 'Auth\RegisterController@showRegistrationForm'); Route::post('/register', 'Auth\RegisterController@register'); -Route::get('/forgottenpassword', function () { - redirect('/forgottenpassword'); -})->middleware('guest'); +Route::get('/forgottenpassword', 'Auth\ForgotPasswordController@showLinkRequestForm'); +Route::post('/forgottenpassword', 'Auth\ForgotPasswordController@showLinkRequestForm'); -Route::post('/forgottenpassword', function () { - redirect('/forgottenpassword'); -})->middleware('guest'); Route::get('/browse', function () { redirect('/browse');