- 解决方法
<div style="display: none">
{#此部分代码并没有卵用, 不必在意, 密码并不会被赋值#}
{{ form.password(value='123') }}
{{ form.repeat_password(value='123') }}
<script>
var password = document.getElementById('password');
var repeat_password = document.getElementById('repeat_password');
password.value = '123';
repeat_password.value = '123';
</script>
</div>