Share your repls and programming experiences

← Back to all posts
A Login System With replitdb That SAVES!
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

Voters
dillonjoshua68
ironblockhd
adl212
Comments
hotnewtop
ironblockhd

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

adl212

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

Codemonkey51

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

adl212

@Codemonkey51 Yes, I know.

Codemonkey51
adl212

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

ironblockhd

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

adl212

@ironblockhd Ok, sure.

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

adl212

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

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

ironblockhd

Nice!

adl212

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

dillonjoshua68

Is there a way to do it out without repldb? @adl212

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.

Codemonkey51

thx :) @adl212 (i made the module)

dillonjoshua68

Oh ok @adl212

adl212

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