mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-26 18:49:53 +08:00
feat: requset_send_mail_access default 1 balance (#143)
* feat: requset_send_mail_access default 1 balance * feat: send_mail RATE_LIMITER for ip
This commit is contained in:
@@ -9,7 +9,7 @@ api.post('/api/requset_send_mail_access', async (c) => {
|
||||
}
|
||||
try {
|
||||
const { success } = await c.env.DB.prepare(
|
||||
`INSERT INTO address_sender (address, enabled) VALUES (?, 1)`
|
||||
`INSERT INTO address_sender (address, balance, enabled) VALUES (?, 1, 1)`
|
||||
).bind(address).run();
|
||||
if (!success) {
|
||||
return c.text("Failed to request send mail access", 500)
|
||||
|
||||
Reference in New Issue
Block a user