Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
c399e891
Commit
c399e891
authored
Aug 14, 2017
by
akrherz
Committed by
Guus der Kinderen
Aug 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1368 Display more-useful admin console msg on user@ login failures
parent
23fa6f11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
openfire_i18n_en.properties
src/i18n/openfire_i18n_en.properties
+3
-0
login.jsp
src/web/login.jsp
+7
-5
No files found.
src/i18n/openfire_i18n_en.properties
View file @
c399e891
...
...
@@ -1088,6 +1088,9 @@ login.failed.unauthorized=Login failed: make sure your username and password are
or moderator.
login.failed.connection
=
Login failed: make sure your the user and group system is up and running.
login.failed.authentication
=
Login failed: Openfire wasn't able to authenticate itself to the users system.
login.failed.lookslikeemail
=
Login failed: You provided what appears to be an email address, consider
\
using just the user part (everything before the @). Typical installations use just 'admin'
\
as the username.
login.username
=
username
login.password
=
password
login.login
=
Login
...
...
src/web/login.jsp
View file @
c399e891
<%--
--%>
<%@ page
import=
"org.jivesoftware.admin.AdminConsole,
org.jivesoftware.openfire.admin.AdminManager"
errorPage=
"error.jsp"
...
...
@@ -144,8 +141,13 @@
catch
(
UnauthorizedException
ue
)
{
Log
.
debug
(
ue
);
LoginLimitManager
.
getInstance
().
recordFailedAttempt
(
username
,
request
.
getRemoteAddr
());
errors
.
put
(
"unauthorized"
,
LocaleUtils
.
getLocalizedString
(
"login.failed.unauthorized"
));
}
// Provide a special message if the user provided something containing @
if
(
username
.
contains
(
"@"
)){
errors
.
put
(
"unauthorized"
,
LocaleUtils
.
getLocalizedString
(
"login.failed.lookslikeemail"
));
}
else
{
errors
.
put
(
"unauthorized"
,
LocaleUtils
.
getLocalizedString
(
"login.failed.unauthorized"
));
}
}
}
// Escape HTML tags in username to prevent cross-site scripting attacks. This
...
...
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