修正后台设置bug

PyOne1.0
Abbey 6 years ago committed by GitHub
parent b07422e5b1
commit f4289a1b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      admin.py

@ -92,7 +92,7 @@ def setting():
flash(u'请输入新密码或者二次确认新密码')
elif password1 is not None and password2 is not None and password1!=password2:
flash(u'两次输入密码不相同')
elif password1 is not None and password2 is not None and password1==password2:
elif password1 is not None and password2 is not None and password1==password2 and password1!='':
new_password=password1
if password_s==password:
set('title',title)
@ -100,6 +100,7 @@ def setting():
set('share_path',share_path)
set('allow_site',allow_site)
set('password',new_password)
reload()
else:
flash(u'原密码错误')
return render_template('admin/setting.html')
@ -107,6 +108,7 @@ def setting():
@admin.route('/upload',methods=["POST","GET"])
def upload():
if request.method=='POST':

Loading…
Cancel
Save