Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
315
Merge Requests
315
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
f8080719
Commit
f8080719
authored
Sep 21, 2004
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#10983
by TDobes: failed logon attempts produce nonsensical watchdog message.
parent
fc1884d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/user.module
modules/user.module
+1
-1
modules/user/user.module
modules/user/user.module
+1
-1
No files found.
modules/user.module
View file @
f8080719
...
...
@@ -765,7 +765,7 @@ function user_login($edit = array(), $msg = '') {
if
(
!
$error
)
{
$error
=
t
(
'Sorry. Unrecognized username or password.'
)
.
' '
.
l
(
t
(
'Have you forgotten your password?'
),
'user/password'
);
}
watchdog
(
'user'
,
t
(
'Login attempt failed for %user: %error.'
,
array
(
'%user'
=>
'<em>'
.
$
server
?
(
$name
.
'@'
.
$server
)
:
$name
.
'</em>'
,
'%error'
=>
"<em>
$error
</em>"
)));
watchdog
(
'user'
,
t
(
'Login attempt failed for %user: %error.'
,
array
(
'%user'
=>
'<em>'
.
$
edit
[
'name'
]
.
'</em>'
,
'%error'
=>
'<em>'
.
$error
.
'</em>'
)));
}
}
...
...
modules/user/user.module
View file @
f8080719
...
...
@@ -765,7 +765,7 @@ function user_login($edit = array(), $msg = '') {
if
(
!
$error
)
{
$error
=
t
(
'Sorry. Unrecognized username or password.'
)
.
' '
.
l
(
t
(
'Have you forgotten your password?'
),
'user/password'
);
}
watchdog
(
'user'
,
t
(
'Login attempt failed for %user: %error.'
,
array
(
'%user'
=>
'<em>'
.
$
server
?
(
$name
.
'@'
.
$server
)
:
$name
.
'</em>'
,
'%error'
=>
"<em>
$error
</em>"
)));
watchdog
(
'user'
,
t
(
'Login attempt failed for %user: %error.'
,
array
(
'%user'
=>
'<em>'
.
$
edit
[
'name'
]
.
'</em>'
,
'%error'
=>
'<em>'
.
$error
.
'</em>'
)));
}
}
...
...
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