调整细节
This commit is contained in:
@@ -460,11 +460,17 @@ class AccountServiceImpl : AccountService {
|
||||
}
|
||||
|
||||
override suspend fun resetPassword(email: String) {
|
||||
ApiClient.api.resetPassword(
|
||||
val resp = ApiClient.api.resetPassword(
|
||||
ResetPasswordRequestBody(
|
||||
username = email
|
||||
)
|
||||
)
|
||||
if (!resp.isSuccessful) {
|
||||
parseErrorResponse(resp.errorBody())?.let {
|
||||
throw it.toServiceException()
|
||||
}
|
||||
throw ServiceException("Failed to reset password")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user