Skip to content

Commit

Permalink
Move resetPasswordService to javaconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Kehrlann committed Dec 20, 2024
1 parent d1a9418 commit 765793d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.springframework.core.io.support.ResourcePropertySource;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;
import org.cloudfoundry.identity.uaa.oauth.provider.ClientDetails;

import java.sql.Timestamp;
Expand All @@ -39,6 +40,7 @@
import static org.springframework.http.HttpStatus.UNPROCESSABLE_ENTITY;
import static org.springframework.util.StringUtils.isEmpty;

@Service("resetPasswordService")
public class UaaResetPasswordService implements ResetPasswordService, ApplicationEventPublisherAware {

public static final int PASSWORD_RESET_LIFETIME = 30 * 60 * 1000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class ForcePasswordChangeController {

public ForcePasswordChangeController(
final ResourcePropertySource resourcePropertySource,
final @Qualifier("resetPasswordService") ResetPasswordService resetPasswordService) {
ResetPasswordService resetPasswordService) {
this.resourcePropertySource = resourcePropertySource;
this.resetPasswordService = resetPasswordService;
}
Expand Down
8 changes: 0 additions & 8 deletions server/src/main/resources/spring/login-ui.xml
Original file line number Diff line number Diff line change
Expand Up @@ -372,14 +372,6 @@
<constructor-arg value="messages.properties"/>
</bean>

<bean id="resetPasswordService" class="org.cloudfoundry.identity.uaa.account.UaaResetPasswordService">
<constructor-arg ref="scimUserProvisioning"/>
<constructor-arg ref="codeStore"/>
<constructor-arg ref="uaaPasswordValidator"/>
<constructor-arg ref="jdbcClientDetailsService"/>
<constructor-arg ref="messagePropertiesSource"/>
</bean>

<bean id="activeKeyService" class="org.cloudfoundry.identity.uaa.cypto.EncryptionKeyService"/>

<bean id="encryptionService" class="org.cloudfoundry.identity.uaa.cypto.EncryptionService">
Expand Down

0 comments on commit 765793d

Please sign in to comment.