Skip to content

Commit

Permalink
Added default CAPTCHA settings to default configuration.
Browse files Browse the repository at this point in the history
Added flash_sessions directory pattern to git ignore file.
  • Loading branch information
AzorianMatt committed Feb 19, 2023
1 parent e34de31 commit bad36b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
flask_session

# gedit
*~

Expand Down
7 changes: 7 additions & 0 deletions powerdnsadmin/default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
SESSION_COOKIE_SAMESITE = 'Lax'
CSRF_COOKIE_HTTPONLY = True

#CAPTCHA Config
CAPTCHA_ENABLE = True
CAPTCHA_LENGTH = 6
CAPTCHA_WIDTH = 160
CAPTCHA_HEIGHT = 60
CAPTCHA_SESSION_KEY = 'captcha_image'

### DATABASE CONFIG
SQLA_DB_USER = 'pda'
SQLA_DB_PASSWORD = 'changeme'
Expand Down

0 comments on commit bad36b5

Please sign in to comment.