Comments (4)
For 1) autocomplete="off" should prevent this. It looks like we have that property applied to the textarea tag instead of the form tag. Moving it to the right html tag should resolve the issue and is likely a better solution than a javascript based one (since some users could have js disabled as you call out).
For 2) I don't know of a better solution and a javascript solution sounds reasonable (this doesn't actually break anything if javascript is disabled). Many browsers do warn that you are about to resubmit the form for refresh on POSTs and I'm able to reproduce this warning on chrome with snappass so I think this is the least impactful issue you flagged.
For 3) I think a server-side solution to not generate links for empty data might be best here. Should a be a simple if statement. We could also add the required
property to the form field to prevent this client side.
from snappass.
These all sound good.
I have just moved the autocomplete='off' to the form tag, and that has resolved that issue even with Javascript disabled as you say.
Having both a server-side and client-side solution for 3) would be great.
from snappass.
@bensharp1 would you mind opening a Pull Request for that autocomplete="off"
change given that you've successfully verified that approach?
from snappass.
Closing this, as these were addressed, merged and deployed in 1.4.2
from snappass.
Related Issues (20)
- feature request: i18n HOT 3
- URL_PREFIX is ignored HOT 3
- feature request: Prevent crawler from opening / invalidate secret HOT 2
- Simple setup question HOT 1
- Snappass config for apache webserver
- docker hub 404 HOT 1
- Stack Error when trying to start SnapPass HOT 3
- Official method of securing this with HTTPS? HOT 2
- Question about creation of multiple links HOT 6
- Any way to change the URL of the links that the Docker Container SnapPass spits out? HOT 7
- New release?
- Upgrade to JQuery version HOT 2
- Docker Build not working anymore HOT 3
- Help with the URL
- Unable to use API endpoints HOT 1
- "This is a development server"
- Input "<" followed by any character leads to ERROR HOT 1
- Add support for env var REDIS_PASSWORD
- Adding french translation HOT 2
- ValueError: invalid literal for int() with base 10 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snappass.