Signed-off-by: Sola <dev@sola.love>
This commit is contained in:
Sola
2017-12-27 10:59:50 +08:00
parent 9ccd27d9d9
commit 0de1ce63d9
7 changed files with 1 additions and 214 deletions

View File

@@ -28,7 +28,6 @@ import love.sola.netsupport.sql.SQLCore;
import love.sola.netsupport.sql.TableOperator;
import love.sola.netsupport.sql.TableUser;
import love.sola.netsupport.util.Crypto;
import love.sola.netsupport.util.RSAUtil;
import love.sola.netsupport.wechat.Command;
import javax.servlet.ServletException;
@@ -73,7 +72,7 @@ public class Login extends HttpServlet {
else if (op.getAccess() >= Access.NO_LOGIN)
return Error.PERMISSION_DENIED;
if (!Crypto.check(bypass ? password : RSAUtil.decrypt(password), op.getPassword())) {
if (!Crypto.check(password, op.getPassword())) {
return Error.WRONG_PASSWORD;
}