二次认证的配置

This commit is contained in:
shimingxy
2025-05-22 16:54:10 +08:00
parent 7bd53e325a
commit 3f5d4e4bf6
25 changed files with 391 additions and 70 deletions

View File

@@ -59,6 +59,7 @@ import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@@ -254,6 +255,22 @@ public class UserInfoController {
}
}
/**
* AuthnType.
*
* @param userInfo
* @param result
* @return
*/
@PutMapping("/updateAuthnType")
public Message<UserInfo> updateAuthnType(@RequestBody UserInfo userInfo) {
logger.debug("updateAuthnType {}",userInfo);
if (userInfoService.updateAuthnType(userInfo)) {
return new Message<>(Message.SUCCESS);
}
return new Message<>(Message.FAIL);
}
@RequestMapping(value = "/import")
public Message<?> importingUsers(
@ModelAttribute("excelImportFile")ExcelImport excelImportFile,