Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
f0ded2fe
Commit
f0ded2fe
authored
Jun 10, 2014
by
Bertrand Gauthier
Browse files
Positionnement d'un message dans le FlashMessenger lorsque l'utilisateur change de profil courant.
parent
978c6b00
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/Controller/UtilisateurController.php
View file @
f0ded2fe
...
...
@@ -23,6 +23,9 @@ class UtilisateurController extends AbstractActionController
if
((
$role
=
$this
->
getRequest
()
->
getPost
(
'role'
)))
{
$this
->
getAuthUserContextService
()
->
setSelectedIdentityRole
(
$role
);
}
$this
->
flashMessenger
()
->
addSuccessMessage
(
sprintf
(
"Vous endossez à présent le profil utilisateur <strong>%s</strong>."
,
$this
->
getAuthUserContextService
()
->
getSelectedIdentityRole
()));
exit
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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