
Research
/Security News
GlassWASM: WebAssembly Malware Found in Trojanized Open VSX Extensions
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.
verify-img-code
Advanced tools
npm install verify-img-code
vite 对 webpack 的支持有一定局限,若报错,不要惊慌,换 vite
模板中:
<VerifyCode ref="verifyRef"></VerifyCode>
js 中:
import { VerifyCode } from 'verify-img-code'
登录注册
const username = ref('')
const password = ref('')
const verify = ref('')
let T = ref('login')
const verifyRef = ref(null) // 验证码这个子组件
const title = ref('登录')
const onSubmit = async() => {
if (T.value === 'login') {
// console.log(verifyRef.value.imgCode); // 验证码
const {data} = await axios.post('/user/login', {
username: username.value,
password: password.value
})
Toast.success('登陆成功');
localStorage.setItem('token',data.token)
router.push('/home')
}else {
if (verify.value != verifyRef.value.imgCode) {
Toast.fail('验证码错误!');
return
}
// 发请求
const {data} = await axios.post('/user/register', {
username: username.value,
password: password.value
})
console.log(data);
Toast.success('注册成功');
T.value = 'login'
}
}
FAQs
verifyCode
We found that verify-img-code demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.