Commit 43816448 by tangzy

ukey优化

parent dfc9ab82
......@@ -41,13 +41,15 @@ public class UkeyLoginController {
if(StringUtils.isNotBlank(certdn))
{
Map<String,Object> map=getLoginidByDN(certdn,noUiRequest);
String loginid=map.get("nam").toString();
log.info("====getUserByDn====loginid"+loginid);
if(StringUtils.isNotBlank(loginid))
{
retDatamap.put("msgCode", "0000");
retDatamap.put("loginid", loginid);
return ResultUtil.result(ErrorCodes.SUCCESS, ErrorCodes.SUCCESS_INFO, retDatamap, noUiVersion.getVersion());
log.info("====getLoginidByDN====map"+map);
if(map.containsKey("nam")) {
String loginid = map.get("nam").toString();
log.info("====getUserByDn====loginid" + loginid);
if (StringUtils.isNotBlank(loginid)) {
retDatamap.put("msgCode", "0000");
retDatamap.put("loginid", loginid);
return ResultUtil.result(ErrorCodes.SUCCESS, ErrorCodes.SUCCESS_INFO, retDatamap, noUiVersion.getVersion());
}
}
}
retDatamap.put("msgCode", "9999");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment