Browse Source

修复账户密码为空时,可以登陆的bug

main v2.2.1
zxbu 4 years ago committed by GitHub
parent
commit
0a3403ca85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/main/java/com/github/zxbu/webdavteambition/config/EmbeddedTomcatConfig.java

4
src/main/java/com/github/zxbu/webdavteambition/config/EmbeddedTomcatConfig.java

@ -37,7 +37,7 @@ public class EmbeddedTomcatConfig implements WebServerFactoryCustomizer<Configur @@ -37,7 +37,7 @@ public class EmbeddedTomcatConfig implements WebServerFactoryCustomizer<Configur
if (aliYunDriveProperties.getAuth().getUserName().equals(username)) {
return aliYunDriveProperties.getAuth().getPassword();
}
return "";
return null;
}
@Override
@ -67,4 +67,4 @@ public class EmbeddedTomcatConfig implements WebServerFactoryCustomizer<Configur @@ -67,4 +67,4 @@ public class EmbeddedTomcatConfig implements WebServerFactoryCustomizer<Configur
public int getOrder() {
return Ordered.LOWEST_PRECEDENCE;
}
}
}

Loading…
Cancel
Save