diff --git a/CHANGELOG.md b/CHANGELOG.md index d52ca8b8c..da8250d24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -129,7 +129,7 @@ - 主题列表默认将已启用的主题放在第一位。 - 关于页面支持复制环境信息。 - 增加附加视频预览功能,并对不支持预览的缩略图做不支持处理。@guqing -- 支持登陆页面设置 API 地址。@johnniang +- 支持登录页面设置 API 地址。@johnniang - 支持选择头像的时候使用 Gravatar。 - 支持在文章列表选择文章进行设置。 - 新增文章/页面列表点击标题预览的特性。@guqing diff --git a/src/main/java/run/halo/app/model/params/LoginParam.java b/src/main/java/run/halo/app/model/params/LoginParam.java index 608eaa811..d5e4b2f8e 100644 --- a/src/main/java/run/halo/app/model/params/LoginParam.java +++ b/src/main/java/run/halo/app/model/params/LoginParam.java @@ -20,7 +20,7 @@ public class LoginParam { @Size(max = 255, message = "用户名或邮箱的字符长度不能超过 {max}") private String username; - @NotBlank(message = "登陆密码不能为空") + @NotBlank(message = "登录密码不能为空") @Size(max = 100, message = "用户密码字符长度不能超过 {max}") private String password; diff --git a/src/main/java/run/halo/app/security/filter/AdminAuthenticationFilter.java b/src/main/java/run/halo/app/security/filter/AdminAuthenticationFilter.java index d50df0bff..97e13eaae 100644 --- a/src/main/java/run/halo/app/security/filter/AdminAuthenticationFilter.java +++ b/src/main/java/run/halo/app/security/filter/AdminAuthenticationFilter.java @@ -65,7 +65,7 @@ public class AdminAuthenticationFilter extends AbstractAuthenticationFilter { String token = getTokenFromRequest(request); if (StringUtils.isBlank(token)) { - throw new AuthenticationException("未登录,请登陆后访问"); + throw new AuthenticationException("未登录,请登录后访问"); } // Get user id from cache diff --git a/src/main/java/run/halo/app/service/impl/AdminServiceImpl.java b/src/main/java/run/halo/app/service/impl/AdminServiceImpl.java index 27aaef132..15a7b246f 100644 --- a/src/main/java/run/halo/app/service/impl/AdminServiceImpl.java +++ b/src/main/java/run/halo/app/service/impl/AdminServiceImpl.java @@ -309,7 +309,7 @@ public class AdminServiceImpl implements AdminService { Assert.hasText(refreshToken, "Refresh token must not be blank"); Integer userId = cacheStore.getAny(SecurityUtils.buildTokenRefreshKey(refreshToken), Integer.class) - .orElseThrow(() -> new BadRequestException("登陆状态已失效,请重新登陆").setErrorData(refreshToken)); + .orElseThrow(() -> new BadRequestException("登录状态已失效,请重新登录").setErrorData(refreshToken)); // Get user info User user = userService.getById(userId);