我使用 shape 和 colander 创建登录表单(电子邮件和密码字段)模式。但密码归档显示我的密码字符。如何隐藏正常的 HTML 密码输入字段。
email = colander.SchemaNode(
colander.Str(),
title='Email',
validator=colander.All(colander.Email()),
widget=deform.widget.TextInputWidget(size=40, maxlength=260, type='email', placeholder="youremail@example.com"),
description="The email address under which you have your account.")
password = colander.SchemaNode(colander.String())