What is the best way to retrieve username and password to compare with user input? #2340
Unanswered
ppowell777
asked this question in
Q&A
Replies: 2 comments 7 replies
-
usually credentials are checked via the backend ... any attempt to have these on the client side risks credentials data leaks. PyScript runs on the browser but it can surely reach your backend where you can compare credentials against a database, env variables or other usual means ... but I guess you don't have a backend, only a static page? If that's the case, how do you add/edit/remove users in general? |
Beta Was this translation helpful? Give feedback.
5 replies
-
And I figured it out on my own:
So that's as far as I have so far been able to go |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using PyScript I created a simple HTML form for user input for username and password, however, I don't know what is the best way to compare user input to the actual username and password that PyScript supports. In my Java language that would be done via system environmental variables (System.getEnv('USERNAME'), System.getEnv('PASSWORD')), but that's inaccessible for me with my PyScript project, and external files are either insecure or unavailable.
What do you recommend?
Beta Was this translation helpful? Give feedback.
All reactions