kongzy
2024-09-20 68b0d9b52145056045b36028d1d621da1c3f2ea1
safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/accountController/LoginController.java
@@ -1,5 +1,6 @@
package com.gkhy.safePlatform.accountController;
import cn.hutool.core.codec.Base64;
import com.alibaba.fastjson.JSONObject;
import com.gkhy.safePlatform.account.rpc.apimodel.AccountAuthService;
import com.gkhy.safePlatform.account.rpc.apimodel.model.resp.MenuRPCRespDTO;
@@ -28,6 +29,7 @@
    public ResultVO<UserLoginRPCRespDTO> authLogin(@RequestBody JSONObject loginForm){
        String username = loginForm.getString("username");
        String password = loginForm.getString("password");
        password= Base64.decodeStr(password);
        return accountAuthService.authLogin(username, password);
    }