mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
Remove login/register pages, use Login/Register controllers completely
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Models\Settings;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
@@ -65,10 +66,35 @@ class LoginController extends Controller
|
||||
return redirect()->intended($this->redirectPath());
|
||||
}
|
||||
|
||||
app('smarty.view')->assign('error', 'These credentials do not match our records.');
|
||||
return redirect()->back()
|
||||
->withInput()
|
||||
->withErrors([
|
||||
'login' => 'These credentials do not match our records.',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function showLoginForm()
|
||||
{
|
||||
$theme = Settings::settingValue('site.main.style');
|
||||
app('smarty.view')->assign(['error' => '', 'username' => '', 'rememberme' => '']);
|
||||
|
||||
$meta_title = 'Login';
|
||||
$meta_keywords = 'Login';
|
||||
$meta_description = 'Login';
|
||||
$content = app('smarty.view')->fetch($theme.'/login.tpl');
|
||||
app('smarty.view')->assign(
|
||||
[
|
||||
'error' => 'These credentials do not match our records.',
|
||||
'content' => $content,
|
||||
'meta_title' => $meta_title,
|
||||
'meta_keywords' => $meta_keywords,
|
||||
'meta_description' => $meta_description,
|
||||
]
|
||||
);
|
||||
app('smarty.view')->display($theme.'/basepage.tpl');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user