Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ data class ConfirmRegisterRequest(
val token: String,
val clientId: String?,
val clientSecret: String?,
val referralCode: String?,
val rememberMe: Boolean?
) : Device()

data class TokenData(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class AuthProxyImpl(@Qualifier("generalWebClient") private val webClient: WebCli

override suspend fun confirmRegister(request: ConfirmRegisterRequest): Token {
return webClient.post()
.uri("$baseUrl/v1/user/public/register/ccofirm")
.uri("$baseUrl/v1/user/public/register/confirm")
.accept(MediaType.APPLICATION_JSON)
.body(Mono.just(request))
.retrieve()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ data class ConfirmRegisterRequest(
val token: String,
val clientId: String?,
val clientSecret: String?,
val rememberMe: Boolean? = false,
val referralCode: String?
) : Device()

data class TokenData(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ class RegisterService(
null
else {
val token = keycloakProxy.getUserToken(username, request.password, request.clientId, request.clientSecret)
if (request.rememberMe == false)
token.refreshToken = null
sendLoginEvent(user.id, token.sessionState, request, token.expiresIn)
return token
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
class AppConfig {
class AppConfig(
) {
@Autowired
private lateinit var symbols: List<String>

Expand Down
Loading