zalsaeed / cgav

Certificate Generation and Verification
GNU General Public License v3.0
3 stars 1 forks source link

users table id field #8

Closed abdullahCode511 closed 5 months ago

abdullahCode511 commented 8 months ago

when i add a new user an error show up that seys there is no default value for the user_id

temporarily solution i added a new field in the register form and named it ID and added a condition to prevent duplicated ID's

in the register function id = StringField(validators=[ InputRequired()], render_kw={"placeholder": "user_id"})

in the register.html <form method="POST" action=""> {{ form.hidden_tag() }} {{ form.user_name }} {{ form.id }} {{ form.password }} {{ form.submit }} </form>

zalsaeed commented 5 months ago

fixed