text: from wtforms import StringField, PasswordField
  from wtforms.validators import DataRequired, EqualTo
  from flask_wtf import FlaskForm
  
  # 定义登录表单
  class LoginForm(FlaskForm):
      username = StringField('用户名', validators=[DataRequired()])
      password = PasswordField('密码', validators=[DataRequired()])
  
  