Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 26e794d2 authored by Darrel Danadyaksa Poli's avatar Darrel Danadyaksa Poli
Browse files

[REFACTOR] Update logging and response message format in postContent method

parent f1a8916f
No related branches found
No related tags found
1 merge request!1Login registration
......@@ -143,9 +143,9 @@ public class AuthenticationService {
if (!user.isVerified()) {
return "Your account is not verified. Please complete OTP verification. You may request a new OTP after 2 minutes.";
}
logger.info("AuthenticationService.postContent :: Content {} posted by user with email: {}", content, email);
logger.info("AuthenticationService.postContent :: Content posted by user with email: {}", email);
// For demo purposes, we assume the post is successful.
return "Content posted successfully";
return String.format("Content '%s' posted successfully.", content);
}
private int calculateAge(LocalDate birthdate) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment