From a824e20b0f3a779042784a899eb8f5807278e36b Mon Sep 17 00:00:00 2001 From: AlexBob <5199840@qq.com> Date: Tue, 2 Apr 2024 17:06:21 +0800 Subject: [PATCH] ng update @angular/material --- .../boot/security/SecurityController.java | 6 ++---- ui/package-lock.json | 18 +++++++++--------- ui/package.json | 4 ++-- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/boot/platform/src/main/java/com/platform/boot/security/SecurityController.java b/boot/platform/src/main/java/com/platform/boot/security/SecurityController.java index 0cb86b79..dc3d18b1 100644 --- a/boot/platform/src/main/java/com/platform/boot/security/SecurityController.java +++ b/boot/platform/src/main/java/com/platform/boot/security/SecurityController.java @@ -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; @@ -91,6 +88,7 @@ public Mono 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 changePassword(@Valid @RequestBody ChangePasswordRequest request, Authentication authentication) { // Check if the new password is the same as the current password. diff --git a/ui/package-lock.json b/ui/package-lock.json index a7b7956a..8cc26c0c 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -9,12 +9,12 @@ "version": "0.0.1", "dependencies": { "@angular/animations": "^17.3.2", - "@angular/cdk": "^17.3.1", + "@angular/cdk": "^17.3.2", "@angular/common": "^17.3.2", "@angular/compiler": "^17.3.2", "@angular/core": "^17.3.2", "@angular/forms": "^17.3.2", - "@angular/material": "^17.3.1", + "@angular/material": "^17.3.2", "@angular/platform-browser": "^17.3.2", "@angular/platform-browser-dynamic": "^17.3.2", "@angular/platform-server": "^17.3.2", @@ -1431,9 +1431,9 @@ } }, "node_modules/@angular/cdk": { - "version": "17.3.1", - "resolved": "https://registry.npmmirror.com/@angular/cdk/-/cdk-17.3.1.tgz", - "integrity": "sha512-pHSN+KlCmdo2u9jY7Yxsry/ZK+EcjOYGzdwxXxcKragMzm7etY3BJiTl4N+qZRuV6cJlMj2PRkij8ABi/HQdEA==", + "version": "17.3.2", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-17.3.2.tgz", + "integrity": "sha512-mC2U7aoIf7RSpGgIwVyfQEbaPDDX59plQt88KeTz15wjF8vosLt2DG0rZEoV8Mq14YS47J+jI76q/LJfd6/GCw==", "dependencies": { "tslib": "^2.3.0" }, @@ -1638,9 +1638,9 @@ } }, "node_modules/@angular/material": { - "version": "17.3.1", - "resolved": "https://registry.npmmirror.com/@angular/material/-/material-17.3.1.tgz", - "integrity": "sha512-Md1OnO0/sQvK5GkTQyE4v1DAaMswXt1TnjjY07KG7cICTrUN8lc0a2P9dMjlSFXIhxC7PTlNH6plSZ1uspbU8Q==", + "version": "17.3.2", + "resolved": "https://registry.npmjs.org/@angular/material/-/material-17.3.2.tgz", + "integrity": "sha512-FuQnzmVZQUqPYxn2AbRNKY/7LTldhazK+PCN+Y9vbTZ6L1INJLANip1r4iXfZnhAUE+dmFAPN6GzfLLh1Dg7vA==", "dependencies": { "@material/animation": "15.0.0-canary.7f224ddd4.0", "@material/auto-init": "15.0.0-canary.7f224ddd4.0", @@ -1693,7 +1693,7 @@ }, "peerDependencies": { "@angular/animations": "^17.0.0 || ^18.0.0", - "@angular/cdk": "17.3.1", + "@angular/cdk": "17.3.2", "@angular/common": "^17.0.0 || ^18.0.0", "@angular/core": "^17.0.0 || ^18.0.0", "@angular/forms": "^17.0.0 || ^18.0.0", diff --git a/ui/package.json b/ui/package.json index 53bcc77e..d76548e3 100644 --- a/ui/package.json +++ b/ui/package.json @@ -13,12 +13,12 @@ "private": true, "dependencies": { "@angular/animations": "^17.3.2", - "@angular/cdk": "^17.3.1", + "@angular/cdk": "^17.3.2", "@angular/common": "^17.3.2", "@angular/compiler": "^17.3.2", "@angular/core": "^17.3.2", "@angular/forms": "^17.3.2", - "@angular/material": "^17.3.1", + "@angular/material": "^17.3.2", "@angular/platform-browser": "^17.3.2", "@angular/platform-browser-dynamic": "^17.3.2", "@angular/platform-server": "^17.3.2",