update m2pool 注销用户接口相关查询新增del_flag条件,开启注销用户谷歌验证
This commit is contained in:
@@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
google_auth = #{info.secret},
|
||||
google_status = #{info.status},
|
||||
update_time = sysdate()
|
||||
where user_name = #{info.email}
|
||||
where user_name = #{info.email} and del_flag = 0
|
||||
</update>
|
||||
|
||||
<select id="checkIfBindByEmail" resultType="java.lang.Boolean">
|
||||
@@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
from
|
||||
sys_user
|
||||
where
|
||||
email = #{email}
|
||||
email = #{email} AND del_flag = 0
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
|
||||
@@ -399,14 +399,10 @@ public class SysUserServiceImpl implements SysUserService {
|
||||
}
|
||||
|
||||
//没有绑定谷歌验证器 校验直接通过
|
||||
if(StringUtils.isBlank(info.getSecret())){
|
||||
if(StringUtils.isBlank(info.getSecret()) || info.getStatus() == 0){
|
||||
return true;
|
||||
}
|
||||
|
||||
//没有绑定谷歌验证器 校验直接通过
|
||||
if(info.getStatus() == 0){
|
||||
return true;
|
||||
}
|
||||
|
||||
if(GoogleAuthenticator.checkCode(info.getSecret(), code, System.currentTimeMillis())){
|
||||
return true;
|
||||
|
||||
@@ -130,7 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
from
|
||||
sys_user
|
||||
where
|
||||
user_name = #{email}
|
||||
user_name = #{email} AND del_flag = '0'
|
||||
limit 1
|
||||
</select>
|
||||
<select id="getCSList" resultType="com.m2pool.system.api.entity.SysUser">
|
||||
|
||||
Reference in New Issue
Block a user