Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable login function without password #74

Open
ScGPS opened this issue Nov 15, 2019 · 0 comments
Open

Disable login function without password #74

ScGPS opened this issue Nov 15, 2019 · 0 comments

Comments

@ScGPS
Copy link

ScGPS commented Nov 15, 2019

修改WEB不要密码就能访问的功能
cd ~/App/zkui/src/main/java/com/deem/zkui/filter/
cp AuthFilter.java AuthFilter.java.bak
vi AuthFilter.java

public void doFilter
这个函数改成
@OverRide
public void doFilter(ServletRequest req, ServletResponse res, FilterChain fc) throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) req;
HttpServletResponse response = (HttpServletResponse) res;

    fc.doFilter(req, res);
}

保存退出

pkill -9 -f "zkui-2.0-SNAPSHOT-jar-with-dependencies.jar"
cd ~/App/zkui/
mvn clean install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant