Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
amis-sms-code-control
Advanced tools
yarn add amis-sms-code-control
载入组件
import 'amis-sms-code-control';
自定义
import { FormItem } from 'amis';
import { SmsCodeControl } from 'amis-sms-code-control';
@FormItem({
type: 'custom-sms-code',
})
class CustomSmsCodeControl extends SmsCodeControl {
// 自定义代码
}
配置
{
type: 'form',
controls: [
{
"type": "text",
"name": "phone",
"required": true,
"validations": "isPhoneNumber",
"placeholder": "请输入手机",
"label": "手机",
},
{
"type": "sms-code",
"label": '验证码',
"placeholder": "请输入验证码",
"name": "code",
"phoneField": "phone", // 与填写手机的字段 name 对应
"api": {
"method": "post",
"url": "/code",
"data": {
"phone": "${phone}" // 与填写手机的字段 name 对应
},
},
"validations": {
isNumeric: true,
isLength: 6
},
"required": true,
},
]
}
FAQs
```bash yarn add amis-sms-code-control ```
We found that amis-sms-code-control 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.