Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
7aceea90
Commit
7aceea90
authored
Jul 28, 2021
by
lionel.marie-louise
Browse files
Correction #17505
parent
69b09a8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/user/controllers/UserController.php
View file @
7aceea90
...
...
@@ -1585,7 +1585,9 @@ class UserController
return
$response
->
withStatus
(
400
)
->
withJson
([
'errors'
=>
'Body login is empty'
]);
}
$user
=
UserModel
::
getByLogin
([
'select'
=>
[
'id'
,
'mail'
],
'login'
=>
strtolower
(
$body
[
'login'
])]);
#SGAMI-SO DBT
$user
=
UserModel
::
getByLogin
([
'select'
=>
[
'id'
,
'mail'
],
'login'
=>
/*strtolower*/
(
$body
[
'login'
])]);
#SGAMI-SO FIN
if
(
empty
(
$user
))
{
return
$response
->
withStatus
(
204
);
}
...
...
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