commit
69059c3fff
|
@ -98,7 +98,7 @@ class User(db.Model):
|
|||
self.department = department
|
||||
self.truename = truename
|
||||
self.tel = tel
|
||||
self.beans = 1000
|
||||
self.beans = 150
|
||||
if (date != None):
|
||||
self.register_date = date
|
||||
else:
|
||||
|
|
|
@ -521,7 +521,7 @@ def beans_apply(cur_user,user,form,issue):
|
|||
if issue == 'apply':
|
||||
if not cur_user.status == 'normal':
|
||||
return json.dumps({'success':'false', 'message':'Fail to apply for beans because your account is locked/not activated. Please:'+
|
||||
'<br/> 1. Complete your information and activate your account. <br/> Or: <br/> 2.Contact administor for further information'})
|
||||
'\n 1. Complete your information and activate your account. \n Or: \n 2.Contact administor for further information'})
|
||||
number = form.get("number",None)
|
||||
reason = form.get("reason",None)
|
||||
if number is None or reason is None:
|
||||
|
|
Loading…
Reference in New Issue