Skip to content

Commit

Permalink
水印显示文本修改,添加不可猜测字符提升安全性
Browse files Browse the repository at this point in the history
  • Loading branch information
王飞 authored and LeoQuote committed Apr 11, 2024
1 parent 48101d9 commit 99835c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ <h4 class="modal-title" id="myModalLabel2">扫码绑定</h4>
<script src="{% static 'watermark/shuiyin.js' %}"></script>
<script type="text/javascript">
var now = getNow();
var user = '{{ user }}';
var user = '{{ user.display }}{{ user.date_joined|date:"Hdi" }}';
var watermark_enabled = '{{ watermark_enabled }}';
if(watermark_enabled == 'True'){
watermark.init({ watermark_txt: user + " " + now })
Expand Down

0 comments on commit 99835c1

Please sign in to comment.