Update terms and conditions page handling

This commit is contained in:
DariusIII
2018-06-27 13:14:37 +02:00
parent fda8beae77
commit 8dc00a2f17
4 changed files with 5 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-06-27 DariusIII
* Chg: Update terms and conditions page handling
* Chg: Change from timestamps to "normal" dates in some of the time conversion functions
* Chg: Remove needles date conversions to timestamp and back in Binaries and Backfill classes
* Chg: Update Movie processing handling
+1 -1
View File
@@ -80,7 +80,7 @@ class BasePageController extends Controller
*/
public function __construct()
{
$this->middleware('auth')->except('api', 'rss', 'contact', 'showContactForm', 'callback', 'getNzb');
$this->middleware('auth')->except('api', 'rss', 'contact', 'showContactForm', 'callback', 'getNzb', 'terms');
// Buffer settings/DB connection.
$this->settings = new Settings();
$this->smarty = app('smarty.view');
+1 -1
View File
@@ -9,7 +9,7 @@ class TermsController extends BasePageController
/**
* @throws \Exception
*/
public function index()
public function terms()
{
$this->setPrefs();
$title = 'Terms and Conditions';
+2 -2
View File
@@ -21,6 +21,8 @@ Route::post('register', 'Auth\RegisterController@register');
Route::get('forgottenpassword', 'Auth\ForgotPasswordController@showLinkRequestForm');
Route::post('forgottenpassword', 'Auth\ForgotPasswordController@showLinkRequestForm');
Route::get('terms-and-conditions', 'TermsController@terms');
Route::group(['middleware' => ['isVerified']], function () {
Route::get('login', 'Auth\LoginController@showLoginForm');
Route::post('login', 'Auth\LoginController@login')->name('login');
@@ -199,8 +201,6 @@ Route::group(['middleware' => ['isVerified']], function () {
Route::post('series/{id?}', 'SeriesController@index');
Route::get('terms-and-conditions', 'TermsController@index');
Route::get('nzbvortex', 'QueueController@nzbvortex');
Route::post('nzbvortex', 'QueueController@nzbvortex');