Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
1b27e93a
Commit
1b27e93a
authored
5 years ago
by
Tom Käsler
Committed by
Daniel Gerhardt
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Return 403 Forbidden on duplicated username when registering
parent
db357fd8
Branches
Branches containing commit
1 merge request
!126
Return 403 Forbidden on duplicated username when registering
Pipeline
#26467
passed with warnings with stages
Stage:
Stage:
Stage:
in 1 minute and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/controller/UserController.java
+3
-1
3 additions, 1 deletion
src/main/java/de/thm/arsnova/controller/UserController.java
with
3 additions
and
1 deletion
src/main/java/de/thm/arsnova/controller/UserController.java
+
3
−
1
View file @
1b27e93a
...
@@ -94,7 +94,9 @@ public class UserController extends AbstractEntityController<UserProfile> {
...
@@ -94,7 +94,9 @@ public class UserController extends AbstractEntityController<UserProfile> {
@PostMapping
(
REGISTER_MAPPING
)
@PostMapping
(
REGISTER_MAPPING
)
public
void
register
(
@RequestBody
LoginCredentials
loginCredentials
)
{
public
void
register
(
@RequestBody
LoginCredentials
loginCredentials
)
{
userService
.
create
(
loginCredentials
.
getLoginId
(),
loginCredentials
.
getPassword
());
if
(
userService
.
create
(
loginCredentials
.
getLoginId
(),
loginCredentials
.
getPassword
())
==
null
)
{
throw
new
ForbiddenException
();
}
}
}
@RequestMapping
(
value
=
ACTIVATE_MAPPING
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
ACTIVATE_MAPPING
,
method
=
RequestMethod
.
POST
)
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment