|
@@ -30,6 +30,7 @@ class login_path(Load):
|
|
|
def get(self):
|
|
|
mobile = self.input('mobile')
|
|
|
password = self.input('password')
|
|
|
+ code = self.input('code')
|
|
|
if mobile and password:
|
|
|
user = self.service('common').one('farm_user', mobile=mobile)
|
|
|
if user:
|
|
@@ -45,7 +46,7 @@ class login_path(Load):
|
|
|
self.out('yes', {'uid':user['id']})
|
|
|
return
|
|
|
else:
|
|
|
- self.out('手机号或密码错误,登录失败')
|
|
|
+ self.out('手机号或密码错误,登录失败' + code)
|
|
|
return
|
|
|
@Web.setting
|
|
|
def bind(self, uid):
|