Commit graph

79 commits

Author SHA1 Message Date
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