Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qb-verify

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qb-verify

A simple scroll verify vue component for vanchu tech. Readme for usage.

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

qb-verify

Installing

Using npm:

$ npm install qb-verify

Usage

(In main.js)

import QbVerify from 'qb-verify'

Vue.use(QbVerify, {
  appId: 'your appId' // require
})

(In your controller)

// getVerifyCode
  let params = {
    mobile: 'user mobile', // require
    type: 'register'       // require, such as 'register'
  }
  this.$verification.getVerifyCode(params).then(_ => {
    // 飘字提示 发送成功
  }).catch(err => {
    if (err && err.status) {
      switch (err.status) {
        case 1: // denied 禁止发送验证码
          // 飘字提示
          break
        case 3: // FREQUENCY_LIMIT(频率限制)
          // 飘字提示
          break
        default:
          break
      }
    } else {
      // 未知错误
    }
  })

// checkVerifyCode
  let params = {
    mobile: 'user mobile', // require
    verifyCode: '1234',    // require, captcha
    type: 'register'       // require, such as 'register'
  }
  this.$verification.checkVerifyCode(params).then(res => {
  }).catch(err => {
  })

Keywords

FAQs

Package last updated on 06 Dec 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc