FormaPago Service
This commit is contained in:
@ -6,8 +6,8 @@ use Psr\Http\Message\ResponseFactoryInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Psr\Http\Server\RequestHandlerInterface;
|
||||
use Incoviba\Service;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Incoviba\Service;
|
||||
|
||||
class Authentication
|
||||
{
|
||||
@ -27,7 +27,11 @@ class Authentication
|
||||
$response = $this->responseFactory->createResponse(301, 'Not logged in')
|
||||
->withHeader('Referer', (string) $request->getUri())
|
||||
->withHeader('X-Redirected-URI', (string) $request->getUri());
|
||||
return $this->view->render($response, 'login.form', ['redirect_uri' => (string) $request->getUri()]);
|
||||
$url = "{$request->getUri()}";
|
||||
if (str_ends_with($url, '/login')) {
|
||||
$url = str_replace('/login', '', $url);
|
||||
}
|
||||
return $this->view->render($response, 'login.form', ['redirect_uri' => $url]);
|
||||
}
|
||||
|
||||
protected function isValid(ServerRequestInterface $request): bool
|
||||
|
Reference in New Issue
Block a user