Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
vnobo committed Apr 4, 2024
2 parents 17fb30d + a824e20 commit 99fef99
Show file tree
Hide file tree
Showing 5 changed files with 1,952 additions and 981 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
* @author Alex bob(<a href="https://github.com/vnobo">Alex Bob</a>)
* @author <a href="https://github.com/vnobo">Alex Bob</a>
*/
@SpringBootApplication
public class BootApplication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizedClientRepository;
import org.springframework.security.web.server.csrf.CsrfToken;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.WebSession;
import reactor.core.publisher.Mono;
Expand Down Expand Up @@ -91,6 +88,7 @@ public Mono<Object> bindOauth2(String clientRegistrationId, Authentication authe
* @throws RestServerException if the new password is the same as the current password.
* @throws RestServerException if the presented password does not match the current password.
*/
@PostMapping("/change/password")
public Mono<UserDetails> changePassword(@Valid @RequestBody ChangePasswordRequest request,
Authentication authentication) {
// Check if the new password is the same as the current password.
Expand Down
Loading

0 comments on commit 99fef99

Please sign in to comment.