Share your repls and programming experiences

← Back to all posts
Admin Login v0.0.1
GDDuck15 (24)

For people that want a login system here it is.

Comments
hotnewtop
RohilPatel (1581)

Very low effort: 8 lines doesn't seem like something of high effort without some sort of error.

CoolCoderSJ (608)

1) You should always keep passwords in .env files. To set a value in a .env you would do

pass="pass"

Then to get the pass in main.py you would do

pass = os.getenv(pass)
if pass == pass_input:
    #stuff

Also this system would only work on repl.it or a local machine, as those two are the only ones that support .env

AloegelhiPlaysR (131)

But actually this is not secure. and low effort.