Skip to content
Sign upLog in
← Back to Community

A Login System With replitdb That SAVES!

Profile icon
adl212

A LOGIN SYSTEM

This is made out of the replitdb module that connects the python program to the new replit database that saves even when users use your program! The problem before was that text files wouldn't be written to by users but only by the owners of the program! I proudly present to you a log in system that saves all accounts from users too! You can also you this as a template if you want.

FEATURES

  • Logging in function
    • checks if account exists
  • Signing up function
    • checks if username is taken

KNOWN LIMITATIONS

  • None anymore! Thanks to
    @Codemonkey51
    !
Voters
Profile icon
dillonjoshua68
Profile icon
ironblockhd
Profile icon
adl212
Comments
hotnewtop
Profile icon
ironblockhd

Not a python dev but maybe you could get around some limitations with python json: https://www.w3schools.com/python/python_json.asp

Profile icon
adl212

@ironblockhd
Yeah, I realize that is a way to solve the nested dictionaries issue.

Profile icon
Codemonkey51

it was fixed in newest version all you have to do is remove + add the package in the package manager

@adl212

Profile icon
adl212

@Codemonkey51
Yes, I know.

Profile icon
Codemonkey51

:)

@adl212

Profile icon
adl212

@Codemonkey51
For some reason though, users can't access keys from the replitdb. Do you think it is repl's problem?

Profile icon
ironblockhd

Sorry, but can you guys make a new comment? Im getting notified when you guys write lol

Profile icon
adl212

@ironblockhd
Ok, sure.

Profile icon
Codemonkey51

no thats by design bc then users could get the data what you could do is use it in a discord bot/server

@adl212

Profile icon
adl212

@Codemonkey51
Ok, so it can't be used for databases for text-based games?

Profile icon
Codemonkey51

You could make the game on a hosted server and have the server do it, but no not in a normal text based game

@adl212

Profile icon
ironblockhd

Nice!

Profile icon
adl212

@ironblockhd
yeah, the replitdb module is a big step for repl.it!

Profile icon
dillonjoshua68

Is there a way to do it out without repldb?

@adl212

Profile icon
adl212

@dillonjoshua68
yes, there is a way to make a login system without replitdb, but users would not be able to create accounts on repl.it.

Profile icon
Codemonkey51

thx :)

@adl212
(i made the module)

Profile icon
dillonjoshua68

Oh ok

@adl212

Profile icon
adl212

@Codemonkey51
Yeah, I'm also reallyverytrash on github.