Commit graph

47 commits

Author SHA1 Message Date
Nicholas Charriere
e7f8a40065 Merge pull request #50 from jameswthorne/no-zero-length
Don't allow zero length form submissions
2017-03-04 10:52:09 -08:00
Nicholas Charriere
86ecb49f94 Merge pull request #52 from jameswthorne/more-ui-tweaks
Move brief documentation to textarea
2017-03-04 10:50:55 -08:00
Carlos Moreno
93f6c6c06f Adding skype to SNEAKY_USER_AGENTS 2017-02-17 21:37:46 -06:00
James W Thorne
ef0cdf8e14 Forgot empty function 2017-01-17 18:17:24 -06:00
James W Thorne
21115979c4 Combine checks 2017-01-17 17:44:47 -06:00
James W Thorne
3270e84fed Move brief documentation to textarea 2017-01-12 19:37:51 -06:00
James W Thorne
d9973c3f29 Don't allow zero length form submissions 2017-01-11 21:42:35 -06:00
Nicholas Charriere
f776c7aa28 Merge pull request #46 from frontfoot/404_to_bots
Return 404 to UserAgents matching /bot/
2017-01-10 19:47:16 -08:00
Joseph Boiteau
58f4658154
Fix code according to @jparise comments
- Refactor is_valid_request code
- Add "Facebot/1.0" User-Agent string
2017-01-11 13:50:42 +11:00
Joseph Boiteau
1651ac4bd5
Return 404 to UserAgents matching list
Empty User-Agent should not break
Add test for 404 response to /bot/
Wrap User-Agent check in `request_is_valid` method
2017-01-11 09:48:54 +11:00
Joseph Boiteau
6cdf6f495b
Change wording ‘password’ to ‘secret’ 2017-01-05 11:06:42 +11:00
Joseph Boiteau
d330f94967
Change password input for textarea 2017-01-05 11:01:16 +11:00
Nicholas Charriere
ad4012dfbe Merge pull request #47 from frontfoot/production_environment
Run in production mode by default
2017-01-03 11:55:42 -08:00
Joseph Boiteau
d61c08c7c7
Run in production mode by default
Use DEBUG environment variable to run debug mode
2017-01-03 13:36:52 +11:00
James W Thorne
f8f672f934 Added back autocomplete=off 2016-11-11 16:39:08 -06:00
James W Thorne
6b88315603 Grammar changes 2016-11-06 09:12:21 -06:00
James W Thorne
3bb3a4949d Removed npm.js and reverted to original copy 2016-11-06 09:05:05 -06:00
James W Thorne
483448051e UI improvements
* Cleaned up UI
* Updated Twitter Bootstrap to v3.3.7
* Updated jquery to 1.12.4
* Added mobile view port
2016-11-02 21:31:50 -05:00
Samuel Dion-Girardeau
9e89376416 Set password value and expiration atomically
Redis has a `SETEX` (http://redis.io/commands/SETEX) method,
which does both setting the value and setting the expiration
atomically.
2016-10-23 03:11:32 -04:00
Nicholas Charriere
d12a090952 Merge pull request #29 from dwinston/patch-1
inherit protocol (http/https) for stylesheet load
2016-09-08 14:45:26 -07:00
Donny Winston
d12d218042 Handle and document use of REDIS_URL env var 2016-09-08 13:44:03 -07:00
Donny Winston
20a24ff1ec inherit protocol (http/https) for stylesheet load
Some browsers (e.g. latest Chrome) won't load stylesheets over http if the site is loaded over https.
2016-09-08 10:29:01 -07:00
Nicholas Charriere
c22c902de6 Merge pull request #23 from pinterest/more-env-vars
Add ENV variables options
2016-09-08 09:58:01 -07:00
Brandon Davis
fadd2854e5 Fix for remaining comments.
- Call function within try/catch
- Syntax clean up
2016-08-22 21:59:08 -07:00
Brandon Davis
f0c9f6a09d Merge remote-tracking branch 'upstream/master' 2016-08-22 21:18:08 -07:00
Samuel Dion-Girardeau
2af4117ecb Fix jquery static lib path 2016-08-22 19:03:31 -04:00
Brandon Davis
e0ae801b24 Remove TimeoutError import 2016-08-21 21:33:12 -07:00
Brandon Davis
9694d7da7f Switch to use decorator for checking if redis server is up.
- setup.py removed empty line flake8 was complaining.
2016-08-21 21:27:00 -07:00
Brandon Davis
c9db491485 Minor cleanup 2016-08-21 11:50:06 -07:00
Brandon Davis
2d6aec17cd Remove unused traceback and code formatting cleanup 2016-08-21 11:24:20 -07:00
Brandon Davis
4feeaef2fd Add exception handling for when redis is down and or not running. 2016-08-21 11:20:00 -07:00
Nicholas Charriere
2855e5b9b6 Add env var options 2016-08-21 09:05:01 +02:00
Samuel Dion-Girardeau
d0f8505bc4 Stop serving jquery from CDN 2016-08-20 16:06:01 -04:00
Samuel Dion-Girardeau
bbc01041da Stop serving clipboard from CDN 2016-08-20 15:55:36 -04:00
Samuel Dion-Girardeau
9b65550b71 Merge remote-tracking branch 'origin/master' into feature/copy_to_clipboard 2016-08-20 15:48:11 -04:00
Samuel Dion-Girardeau
26972a2f52 Move snappass-specific js/css into separate dir 2016-08-20 15:47:18 -04:00
Nicholas Charriere
64b5c3f7be Merge pull request #19 from samueldg/feature/tox_python3_support
feature/tox_python3_support
2016-08-15 13:52:32 -07:00
Samuel Dion-Girardeau
073885d651 Add button to copy link/password to clipboard
- Using clipboard.js
- On browsers not supporting evalCommand(), the text will be selected,
  and the keyboard shortcut displayed, depending on platform.
  (tested on Safari)
- Now using Bootstrap readonly text form, instead of a header,
  to display the passwords and generated links;
- Using fontawesome to get a clipboard icon (like GitHub, GitLab, etc.)
- fontawesome and clipboard.js are pulled from a CDN.
2016-08-13 20:14:36 -04:00
Yongwen Xu
c0d1e0ae39 Merge pull request #18 from samueldg/enhancement/no_autocompletion
Prevent browser autocompletion of password
2016-08-11 23:52:31 -07:00
James Barclay
b9e34ce2f8 Fixed minor typos. 2016-08-12 00:26:22 -04:00
Samuel Dion-Girardeau
a46fc40aa3 Improve string encoding for password retrieval
- Prevent the password from displaying as b'...' in the app;
 - Use Flask's `get_data(as_test=True)` to read the data, in the tests;
 - Add test to ensure `get_password` is not returning bytes.
2016-08-11 22:05:35 -04:00
Samuel Dion-Girardeau
3159c3e230 Prevent browser autocompletion of password
Using the `autocomplete="off" attribute
2016-08-11 20:44:18 -04:00
Nicholas Charriere
479dca09b2 Improve wording 2016-07-18 17:14:38 -07:00
Nicholas Charriere
d88cf2600e Refactor _id() function to be inline 2016-07-18 13:35:57 -07:00
Nicholas Charriere
db1ef7673e Make flake8 test pass 2016-07-18 11:53:34 -07:00
James Barclay
17c54e9896 Fix typos. 2014-11-04 14:02:54 -08:00
Dave Dash
eefe2bdc76 Prepare snappass for distribution. 2013-10-05 23:10:50 -07:00