Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
3

A Login System With replitdb That SAVES!

adl212
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
    !
2 years ago

Voters

Comments

TopNew
1
ironblockhd
ironblockhd

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

2 years ago
1
adl212
adl212

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

2 years ago
1
Codemonkey51
Codemonkey51

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

@adl212

2 years ago
1
adl212
adl212

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

2 years ago
1
ironblockhd
ironblockhd

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

2 years ago
1
Codemonkey51
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

2 years ago
1
adl212
adl212

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

2 years ago
1
Codemonkey51
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

2 years ago
1
adl212
adl212

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

2 years ago
1
dillonjoshua68
dillonjoshua68

Is there a way to do it out without repldb?

@adl212

2 years ago
3
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.

2 years ago
1
Codemonkey51
Codemonkey51

thx :)

@adl212
(i made the module)

2 years ago
1
adl212
adl212

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

2 years ago
Load more