xxg-verify-code
v1.2.1
Published
verify code through alidayu-node
Downloads
2
Maintainers
Readme
var defaultConfig={ expireTime:600, spaceTime:60, cacheCount:200 };
module.exports(appKey,appSecret,productName,config);
var dx=require('xxg-verify-code')(...);
dx.test('18612698214','yymt168') .then(err=>{console.log('success:');console.log(err);}) .catch(err=>{console.log('error:');console.log(err);}); dx.register('18612698214',dx.genCode()) .then(err=>console.log('3err')) .catch(err=>console.log('4err')); dx.modifyPassword('18612698214',dx.genCode()) .then(err=>console.log('5err')) .catch(err=>console.log('6err'));
增加: dx.verify('18612698214',dx.genCode()) .then(err=>console.log('5err')) .catch(err=>console.log('6err'));