Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
1d697149
Verified
Commit
1d697149
authored
2 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: nicer error messages for user name/password invalid
parent
d7fa78c0
No related branches found
No related tags found
2 merge requests
!66
REL: prepare release 0.8.0
,
!63
Make password and user name requirements configurable
Pipeline
#24948
failed
2 years ago
Stage: info
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
conf/core/server.conf
+1
-1
1 addition, 1 deletion
conf/core/server.conf
src/main/java/org/caosdb/server/utils/ServerMessages.java
+2
-2
2 additions, 2 deletions
src/main/java/org/caosdb/server/utils/ServerMessages.java
with
3 additions
and
3 deletions
conf/core/server.conf
+
1
−
1
View file @
1d697149
...
...
@@ -209,7 +209,7 @@ USER_NAME_VALID_REGEX=^[\\w\\.][\\w\\.-]*{1,32}$
USER_NAME_INVALID_MESSAGE
=
User
names
must
have
a
length
from
1
to
32
characters
.
They
must
contain
only
latin
letters
a
-
z
(
upper
case
or
lower
case
),
number
0
-
9
,
dots
(.),
underscores
(
_
),
or
hyphens
(-).
They
must
no
start
with
a
hyphen
.
PASSWORD_VALID_REGEX
=^((?=.*\\
d
)(?=.*[
a
-
z
])(?=.*[
A
-
Z
])(?=.*[\\
p
{
Punct
}]).{
8
,
128
})$
PASSWORD_INVALID_MESSAGE
=
blablabla
PASSWORD_INVALID_MESSAGE
=
Passwords
must
have
a
length
from
8
to
128
characters
.
THe
must
contain
at
least
one
[
A
-
Z
],
one
[
a
-
z
],
one
[
0
-
9
]
and
a
special
character
e
.
g
. [!§$%&/()=?.;,:
#+*+~].
# --------------------------------------------------
# Extensions
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/caosdb/server/utils/ServerMessages.java
+
2
−
2
View file @
1d697149
...
...
@@ -403,7 +403,7 @@ public class ServerMessages {
return
new
Message
(
MessageType
.
Error
,
MessageCode
.
MESSAGE_CODE_UNKNOWN
,
"Th
is
password does not
matc
h the current policies for passwords: "
+
policy
);
"Th
e
password does not
comply wit
h the current policies for passwords: "
+
policy
);
}
public
static
final
Message
AFFILIATION_ERROR
=
...
...
@@ -610,7 +610,7 @@ public class ServerMessages {
return
new
Message
(
MessageType
.
Error
,
MessageCode
.
MESSAGE_CODE_UNKNOWN
,
"The user name does not comply with the policies for user names: "
+
policy
);
"The user name does not comply with the
current
policies for user names: "
+
policy
);
}
public
static
final
Message
CANNOT_DELETE_YOURSELF
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment