active directory authentication, full mfa implementation, vpn generation

This commit is contained in:
2024-05-20 16:10:32 -07:00
parent 49962ade44
commit a64e527fac
16 changed files with 1084 additions and 19 deletions

8
_forms.py Normal file
View File

@@ -0,0 +1,8 @@
import wtforms
from ad import updatePassword
class ChangePasswordForm(wtforms.Form):
# oldpw = wtforms.PasswordField('OldPassword', validators=[wtforms.validators.DataRequired()])
newpw = wtforms.PasswordField('NewPassword', validators=[wtforms.validators.DataRequired(), wtforms.validators.EqualTo('conpw', message='Passwords must match')])
conpw = wtforms.PasswordField('ConPassword')
submit = wtforms.SubmitField('Submit')