|
|
@ -368,11 +368,6 @@ def user_edit(request):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return HttpResponseRedirect(reverse('user_list'))
|
|
|
|
return HttpResponseRedirect(reverse('user_list'))
|
|
|
|
|
|
|
|
|
|
|
|
if password != '':
|
|
|
|
|
|
|
|
password_decode = password
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
password_decode = None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
db_update_user(user_id=user_id,
|
|
|
|
db_update_user(user_id=user_id,
|
|
|
|
password=password,
|
|
|
|
password=password,
|
|
|
|
name=name,
|
|
|
|
name=name,
|
|
|
@ -391,7 +386,7 @@ def user_edit(request):
|
|
|
|
密码:%s (如果密码为None代表密码为原密码)
|
|
|
|
密码:%s (如果密码为None代表密码为原密码)
|
|
|
|
权限::%s
|
|
|
|
权限::%s
|
|
|
|
|
|
|
|
|
|
|
|
""" % (user.name, URL, user.username, password_decode, user_role.get(role_post, u''))
|
|
|
|
""" % (user.name, URL, user.username, password, user_role.get(role_post, u''))
|
|
|
|
send_mail('您的信息已修改', msg, MAIL_FROM, [email], fail_silently=False)
|
|
|
|
send_mail('您的信息已修改', msg, MAIL_FROM, [email], fail_silently=False)
|
|
|
|
|
|
|
|
|
|
|
|
return HttpResponseRedirect(reverse('user_list'))
|
|
|
|
return HttpResponseRedirect(reverse('user_list'))
|
|
|
|