C# Class CRL.Person.UserMobileVerify

对用户进行手机验证 验证信息存留在服务端
Show file Open project: hubro-xx/CRL2

Public Properties

Property Type Description
CurrentCode string

Public Methods

Method Description
CheckCode ( string mobile, string code, string &error ) : bool

检验验证码,成功会清除缓存数据

SendCode ( string mobile, string content, string &error ) : bool

发送自定义格式短信

Protected Methods

Method Description
SendSms ( string mobile, string content, string &error ) : bool

发送短信方法,请重写

Private Methods

Method Description
MakeRandomCode ( ) : string

生成随机码

Method Details

CheckCode() public method

检验验证码,成功会清除缓存数据
public CheckCode ( string mobile, string code, string &error ) : bool
mobile string
code string
error string
return bool

SendCode() public method

发送自定义格式短信
public SendCode ( string mobile, string content, string &error ) : bool
mobile string
content string 不为空时为自定义短信,验证码域请用{0}表示
error string
return bool

SendSms() protected method

发送短信方法,请重写
protected SendSms ( string mobile, string content, string &error ) : bool
mobile string
content string
error string
return bool

Property Details

CurrentCode public property

当前随机码
public string CurrentCode
return string