cmca登录判断用户名

This commit is contained in:
TsMask
2023-08-23 19:27:35 +08:00
parent 64df6e9f72
commit ff29c0a9b9
2 changed files with 15 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ func (*ReqCMCALoginAlarm) Handle(request ziface.IRequest) {
seqNo := m.GetUserByPID(uid.(string)).SeqNo
content := username + ":" + seqNo
// 检查判断是否对应随机码
if err := service.CMCALogin(cert, content, key); err != nil {
if err := service.CMCALogin(username, cert, content, key); err != nil {
zlog.Ins().ErrorF("LoginFail %s", err)
request.GetConnection().SendMsg(ReqLoginAlarmMsgType, core.Result(ReqLoginAlarmMsgName, map[string]string{
"result": "autherror",