mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-30 01:46:18 +08:00
remove login
This commit is contained in:
@@ -1,34 +0,0 @@
|
|||||||
package love.sola.netsupport;
|
|
||||||
|
|
||||||
import love.sola.netsupport.util.RSAUtil;
|
|
||||||
|
|
||||||
import javax.servlet.ServletException;
|
|
||||||
import javax.servlet.annotation.WebServlet;
|
|
||||||
import javax.servlet.http.HttpServlet;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
import static love.sola.netsupport.config.Lang.format;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ***********************************************
|
|
||||||
* Created by Sola on 2015/12/12.
|
|
||||||
* Don't modify this source without my agreement
|
|
||||||
* ***********************************************
|
|
||||||
*/
|
|
||||||
|
|
||||||
@WebServlet(name = "LoginRedirect", urlPatterns = "/login", loadOnStartup = 2)
|
|
||||||
public class Login extends HttpServlet {
|
|
||||||
|
|
||||||
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
|
||||||
doGet(request, response);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
|
||||||
request.setCharacterEncoding("utf-8");
|
|
||||||
response.setCharacterEncoding("utf-8");
|
|
||||||
response.sendRedirect(format("Operator_Login_Page", RSAUtil.publicKey_s));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user