Fix installation on the first startup (#578)

pull/583/head
John Niang 2020-02-18 23:39:17 +08:00 committed by GitHub
parent bffd213a55
commit 594923ebd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ public class WebMvcAutoConfiguration extends WebMvcConfigurationSupport {
log.debug("Looking path: [{}]", lookupPath);
for (String blackPattern : blackPatterns) {
if (this.pathMatcher.match(blackPattern, lookupPath)) {
log.info("Skipped path [{}] with pattern: [{}]", lookupPath, blackPattern);
log.debug("Skipped path [{}] with pattern: [{}]", lookupPath, blackPattern);
return null;
}
}

View File

@ -158,7 +158,7 @@ public abstract class AbstractAuthenticationFilter extends OncePerRequestFilter
// Check whether the blog is installed or not
Boolean isInstalled = optionService.getByPropertyOrDefault(PrimaryProperties.IS_INSTALLED, Boolean.class, false);
if (!isInstalled && Mode.TEST.equals(haloProperties.getMode())) {
if (!isInstalled && !Mode.TEST.equals(haloProperties.getMode())) {
// If not installed
getFailureHandler().onFailure(request, response, new NotInstallException("当前博客还没有初始化"));
return;