本系统登陆功能用户在界面选择好自己的角色然后输入正确的账号和密码进行系统的访问为了安全性考虑系统编写了拦截器拦截了除登陆页面的一切请求在拦截器中判断用户信息是否存在服务端用户登陆成功后系统将用户信息存在session作用域中如果没有用户信息的存在说明用户没有进行登陆拦截器将不允许任何请求的通过重新将用户待会登陆页面。优化这句话
The login function of this system allows users to select their role on the interface and enter the correct account and password to access the system. For security reasons, an interceptor is implemented to block all requests except for the login page. The interceptor checks if user information exists on the server (after successful login, the system stores user information in the session scope). If there is no user information, it means the user has not logged in, and the interceptor will not allow any requests to pass through and redirect the user back to the login page.
Revised: To ensure secure access, our system requires users to select their role and provide valid login credentials. To prevent unauthorized access, we have implemented an interceptor that blocks all requests except for the login page. This interceptor checks if user information is available on the server (stored in the session scope upon successful login). If no user information is found, the interceptor redirects the user back to the login page
原文地址: https://www.cveoy.top/t/topic/dbfF 著作权归作者所有。请勿转载和采集!