Redesigned login screen
This commit is contained in:
@ -16,14 +16,21 @@ namespace Inforbank\Application;
|
||||
|
||||
use \Slim\App;
|
||||
use Inforbank\Application\Helper\Redirect;
|
||||
use Inforbank\Proxy;
|
||||
|
||||
class Login
|
||||
{
|
||||
public function __construct(App $app)
|
||||
{
|
||||
$app->get('/login', function ($request, $response, $args) {
|
||||
$query = $request->getQueryParams();
|
||||
$error = isset($query['error']);
|
||||
|
||||
// Render index view
|
||||
return $this->renderer->render($response, 'login.phtml', $args);
|
||||
return $this->renderer->render($response, 'login.phtml', array(
|
||||
'base' => Proxy::$route->getBaseUrl() . "/",
|
||||
'error' => $error
|
||||
));
|
||||
});
|
||||
|
||||
$app->post('/login', function ($request, $response, $args) {
|
||||
|
Reference in New Issue
Block a user