Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
musica_listas_topsify
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
musica_listas_topsify
Commits
e19b6345
Commit
e19b6345
authored
Apr 10, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajuste cliente
parent
a11e0efb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
src/BackendBundle/Controller/SecurityController.php
src/BackendBundle/Controller/SecurityController.php
+6
-11
No files found.
src/BackendBundle/Controller/SecurityController.php
View file @
e19b6345
...
...
@@ -10,25 +10,20 @@ use App\Utilities\Utiles;
class
SecurityController
extends
AbstractController
{
public
function
login
(
AuthenticationUtils
$authenticationUtils
)
:
Response
{
public
function
login
(
AuthenticationUtils
$authenticationUtils
)
:
Response
{
$log
=
Utiles
::
setLog
(
'App\BackendBundle\Controller::SecurityController::login'
,
'app/login'
);
/
*/
/ get the login error if there is one
// get the login error if there is one
$error
=
$authenticationUtils
->
getLastAuthenticationError
();
// last username entered by the user
$lastUsername
=
$authenticationUtils
->
getLastUsername
();
$log
->
debug
(
"Haciendo login..."
);
return $this->render('security/login.html.twig', ['last_username' => $lastUsername, 'error' => $error]);
*/
$log
->
debug
(
"Redireccionando al front..."
);
//return $this->redirectToRoute('app_login');
return
$this
->
redirectToRoute
(
'front_index'
);
return
$this
->
render
(
'security/login.html.twig'
,
[
'last_username'
=>
$lastUsername
,
'error'
=>
$error
]);
}
public
function
redirectLogin
(){
$log
=
Utiles
::
setLog
(
'App\BackendBundle\Controller::SecurityController::redirectLogin'
,
'app/login'
);
$log
->
debug
(
"Redireccionando al front..."
);
//return $this->redirectToRoute('app_login');
return
$this
->
redirectToRoute
(
'front_index'
);
$log
->
debug
(
"Redireccionando al login..."
);
return
$this
->
redirectToRoute
(
'app_login'
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment