mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-08-28 11:37:42 +08:00
fix: 针对角色配置不同的绑定地址数量上限 (#742)
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
- feat: |地址密码| 增加地址密码登录功能, 通过 `ENABLE_ADDRESS_PASSWORD` 配置启用
|
- feat: |地址密码| 增加地址密码登录功能, 通过 `ENABLE_ADDRESS_PASSWORD` 配置启用
|
||||||
- fix: |GitHub Actions| 修复 debug 模式配置,仅当 DEBUG_MODE 为 'true' 时才启用调试模式
|
- fix: |GitHub Actions| 修复 debug 模式配置,仅当 DEBUG_MODE 为 'true' 时才启用调试模式
|
||||||
- feat: |Admin| 账户管理页面新增多选批量操作功能(批量删除、批量清空收件箱、批量清空发件箱)
|
- feat: |Admin| 账户管理页面新增多选批量操作功能(批量删除、批量清空收件箱、批量清空发件箱)
|
||||||
|
- feat: |Admin| 维护页面增加清理未绑定用户地址的功能
|
||||||
|
- feat: 支持针对角色配置不同的绑定地址数量上限, 可在 admin 页面配置
|
||||||
|
|
||||||
## v1.0.5
|
## v1.0.5
|
||||||
|
|
||||||
|
|||||||
@@ -194,6 +194,9 @@ app.use('/user_api/*', async (c, next) => {
|
|||||||
console.error(e);
|
console.error(e);
|
||||||
return c.text(msgs.UserTokenExpiredMsg, 401)
|
return c.text(msgs.UserTokenExpiredMsg, 401)
|
||||||
}
|
}
|
||||||
|
if (c.req.path.startsWith("/user_api/bind_address")) {
|
||||||
|
await checkoutUserRolePayload(c);
|
||||||
|
}
|
||||||
if (c.req.path.startsWith('/user_api/bind_address')
|
if (c.req.path.startsWith('/user_api/bind_address')
|
||||||
&& c.req.method === 'POST'
|
&& c.req.method === 'POST'
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user