Compare commits
2 Commits
261c1482eb
...
eeb92fe0d1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
eeb92fe0d1 | ||
![]() |
5d11552ca4 |
@@ -158,7 +158,7 @@ router.post('/register', async (req, res) => {
|
||||
}
|
||||
// 获取用户User-Agent
|
||||
const userAgent = req.headers['user-agent'] || '';
|
||||
const defaultAvatar = 'https://img20.360buyimg.com/openfeedback/jfs/t1/349561/26/2288/51193/68c324e1F0847c3c5/21f0e026204657da.png';
|
||||
const defaultAvatar = new URL('@/assets/imgs/avatar.jpg', import.meta.url).href;
|
||||
|
||||
// 插入新用户(密码使用SHA2哈希加密)
|
||||
const [result] = await pool.execute(
|
||||
|
Reference in New Issue
Block a user