mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-24 08:58:06 +00:00
fix-formatting
This commit is contained in:
parent
5a2fa9abcc
commit
5ce631a84d
@ -1450,7 +1450,6 @@ public class OpenSearchClient implements SearchClient {
|
||||
return searchBuilder(queryBuilder, hb, from, size);
|
||||
}
|
||||
|
||||
|
||||
private static QueryStringQueryBuilder buildSearchQueryBuilder(
|
||||
String query, Map<String, Float> fields) {
|
||||
return QueryBuilders.queryStringQuery(query)
|
||||
|
@ -83,7 +83,6 @@ import org.openmetadata.service.security.AuthenticationException;
|
||||
import org.openmetadata.service.security.SecurityUtil;
|
||||
import org.openmetadata.service.security.jwt.JWTTokenGenerator;
|
||||
import org.openmetadata.service.util.EmailUtil;
|
||||
import org.openmetadata.service.util.EmailUtil;
|
||||
import org.openmetadata.service.util.EntityUtil;
|
||||
import org.openmetadata.service.util.JsonUtils;
|
||||
import org.openmetadata.service.util.PasswordUtil;
|
||||
@ -262,7 +261,8 @@ public class BasicAuthenticator implements AuthenticatorHandler {
|
||||
|
||||
// Update user about Password Change
|
||||
try {
|
||||
EmailUtil.sendAccountStatus(storedUser.getName(), storedUser.getEmail(), "Update Password", "Change Successful");
|
||||
EmailUtil.sendAccountStatus(
|
||||
storedUser.getName(), storedUser.getEmail(), "Update Password", "Change Successful");
|
||||
} catch (TemplateException ex) {
|
||||
LOG.error("Error in sending Password Change Mail to User. Reason : " + ex.getMessage(), ex);
|
||||
throw new CustomExceptionMessage(424, FAILED_SEND_EMAIL, EMAIL_SENDING_ISSUE);
|
||||
@ -487,7 +487,7 @@ public class BasicAuthenticator implements AuthenticatorHandler {
|
||||
loginAttemptCache.recordFailedLogin(email);
|
||||
int failedLoginAttempt = loginAttemptCache.getUserFailedLoginCount(email);
|
||||
if (failedLoginAttempt == SecurityUtil.getLoginConfiguration().getMaxLoginFailAttempts()) {
|
||||
EmailUtil.sendAccountStatus(
|
||||
EmailUtil.sendAccountStatus(
|
||||
userName,
|
||||
email,
|
||||
"Multiple Failed Login Attempts.",
|
||||
|
@ -64,7 +64,6 @@ import org.openmetadata.service.OpenMetadataApplicationConfig;
|
||||
import org.openmetadata.service.auth.JwtResponse;
|
||||
import org.openmetadata.service.exception.CustomExceptionMessage;
|
||||
import org.openmetadata.service.exception.EntityNotFoundException;
|
||||
import org.openmetadata.service.exception.UnhandledServerException;
|
||||
import org.openmetadata.service.jdbi3.RoleRepository;
|
||||
import org.openmetadata.service.jdbi3.TokenRepository;
|
||||
import org.openmetadata.service.jdbi3.UserRepository;
|
||||
|
@ -147,7 +147,7 @@ public class EmailUtil {
|
||||
sendMail(
|
||||
getAccountStatusChangeSubject(),
|
||||
templatePopulator,
|
||||
email,
|
||||
email,
|
||||
ACCOUNT_STATUS_TEMPLATE_FILE,
|
||||
true);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user