mirror of https://github.com/halo-dev/halo
Fix installation on the first startup (#578)
parent
bffd213a55
commit
594923ebd8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue