mirror of
https://github.com/ChrispyBacon-dev/DockFlare.git
synced 2026-04-28 11:49:34 +00:00
oauth alpha - implementation
This commit is contained in:
parent
2d41b4ecf3
commit
295cfa634c
13 changed files with 894 additions and 27 deletions
|
|
@ -45,6 +45,15 @@ class SecuritySettingsForm(FlaskForm):
|
|||
disable_password_login = BooleanField(
|
||||
'Disable Password Login'
|
||||
)
|
||||
oauth_session_timeout = IntegerField(
|
||||
'OAuth Session Timeout (seconds)',
|
||||
default=86400,
|
||||
validators=[Optional()]
|
||||
)
|
||||
oauth_audit_enabled = BooleanField(
|
||||
'Enable OAuth Audit Logging',
|
||||
default=True
|
||||
)
|
||||
submit_security_settings = SubmitField('Save Security Settings')
|
||||
|
||||
class ChangePasswordForm(FlaskForm):
|
||||
|
|
@ -70,6 +79,18 @@ class ChangePasswordForm(FlaskForm):
|
|||
submit = SubmitField('Change Password')
|
||||
|
||||
|
||||
class LoginForm(FlaskForm):
|
||||
"""Form for the main login page."""
|
||||
username = StringField(
|
||||
'Username',
|
||||
validators=[DataRequired(message="Username is required.")]
|
||||
)
|
||||
password = PasswordField(
|
||||
'Password',
|
||||
validators=[DataRequired(message="Password is required.")]
|
||||
)
|
||||
submit = SubmitField('Login')
|
||||
|
||||
class CloudflareCredentialsForm(FlaskForm):
|
||||
"""Form for updating Cloudflare API credentials."""
|
||||
cf_account_id = StringField(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue