-
-
Notifications
You must be signed in to change notification settings - Fork 29
WIP: Allow joining public clans w/o invite token #362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b8a4226 to
999268b
Compare
999268b to
1e9a7be
Compare
bukajsytlos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool PR
|
|
||
| public Player getPlayer(Authentication authentication) { | ||
| public Player getCurrentPlayer() { | ||
| Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if UserSupplier could be used here, or it is being redundant due to this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't know a case where you have User instead of a Player except for the current logged in one.
78b3aec to
75de6d1
Compare
| produces = APPLICATION_JSON_UTF8_VALUE) | ||
| @ApiResponse(code = 200, message = "Success with JSON { jwtToken: ? }"), | ||
| @ApiResponse(code = 400, message = "Bad Request")}) | ||
| @GetMapping(path = "/generateInvitationLink", produces = APPLICATION_JSON_VALUE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 vs 4 spaces
| private String description; | ||
| private String tagColor; | ||
| private String websiteUrl; | ||
| private Boolean requiresInvitation = Boolean.TRUE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that Boolean because of database definitions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be Boolean instead of boolean if it is nullable
a247a0d to
207dd17
Compare
81295e6 to
a9c8c3a
Compare
cf5ab3e to
e345c1a
Compare
e345c1a to
2879712
Compare
|
Closed in favor of #428 |
No description provided.