def inputCreditCardNo(): cardNo = raw_input(u"请输入转账卡号:") card = sql.getUserInfosByCarNo(cardNo) if not card : print (u"你输入待转账卡号不存在") return False return cardNo
def login(cardNo,passwd): userInfos = sql.getUserInfosByCarNo(cardNo) if not userInfos: return False if userInfos['password'] != utils.encrypt(passwd): return False sql.markLoginSuccess(cardNo) print u"登录成功" return True
def login(cardNo, passwd): userInfos = sql.getUserInfosByCarNo(cardNo) if not userInfos: return False if userInfos['password'] != utils.encrypt(passwd): return False sql.markLoginSuccess(cardNo) print u"登录成功" return True