mirror of
https://gitee.com/dromara/sa-token.git
synced 2024-12-05 05:17:54 +08:00
!152 update sa-token-doc/doc/up/safe-auth.md.
Merge pull request !152 from yangyang/N/A
This commit is contained in:
commit
e42b70836c
@ -57,7 +57,7 @@ public String add() {
|
|||||||
@RequestMapping("deleteProject")
|
@RequestMapping("deleteProject")
|
||||||
public SaResult deleteProject(String projectId) {
|
public SaResult deleteProject(String projectId) {
|
||||||
// 第1步,先检查当前会话是否已完成二级认证
|
// 第1步,先检查当前会话是否已完成二级认证
|
||||||
if(StpUtil.isSafe()) {
|
if(!StpUtil.isSafe()) {
|
||||||
return SaResult.error("请完成二级认证后再次访问接口");
|
return SaResult.error("请完成二级认证后再次访问接口");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user