1
0

Redesigned login screen

This commit is contained in:
2017-03-31 19:03:10 +02:00
parent 8883d28453
commit 5d998b0e33
3 changed files with 150 additions and 61 deletions

View File

@ -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) {