(this topic was solved - can a moderator close this?)
I’m not from Romania, but in general your admin dashboard (where you see and control user info) should be locked down with passwords, one time access codes etc. And passwords should be hashed and salted, also- the user should have the right to see what your collecting under GDPR regulations.
i mean, if you do not have a log-in system, you don’t need a privacy policy?
could you explain? any info collected from auth forms should be requestable by the user
Say I sign up to your site- I should have the right to ask for my IP, or my username and stuff like that. But only after I have gone through a thorough process to prove my identity
Follow these steps:
-
lock down the page where you can see user info- all passwords should be hashed and not be seen, not even by admins.
-
Allow people to request data you collect, discord for example offers users the option to see what info discord has collected. In this case make sure they can prove their identity
-
Make a privacy notice- tell people where and what their data is going to be used for.
Admins should be people who can be trusted not to disclose user info to the outside world
Might not apply: https://www.wired.co.uk/article/what-is-gdpr-uk-eu-legislation-compliance-summary-fines-2018
If you collect any user information, you should add a Privacy Policy and be specific on what info you collect.
Edit: I typed this before 17lwinn posted this so I don’t mean for this to be a duplicate
@no_one also, you should only collect relevant user data (passwords, usernames etc) and destroy them when they are no longer needed.
@aboutdavid thanks for the extra reply!
Also, you should hash your users passwords using something like bcrypt. And if you impersonate users you (possible, maybe) could be sued/your users could lose their trust in you.
From experience- even the tightest systems can be penetrated by a backdoor. Admin interfaces especially should be handled with caution.
I am collecting it in case someone forgets their password, or is hacked, so admins can run the users through a test to check if they actually are “themselves” so they can give the password back to them.
So i don’t think i can destroy the info…
Also, i am keeping them in the .env file
No, you should allow them to reset their password instead of giving it to them. If you store non-hashed passwords, then you are vulnerable to database breaches and your users will be really mad at you because you could have prevented it but you just didn’t hash passwords.
i don’t think i can do that.
firstly, never keep passwords in .env- projects can be hijacked and the .env is never 100% safe.
Always store in a safe place- like a hidden folder or external service like mongodb atlas.
how can i make a file allowed only for certain google accounts?
Just use Firebase Auth. It’s really easy to use and supports oAuth.
Hey, also forgot- the glitch TOS REQUIRES contains what you must do with user data collected on a glitch site.
Can you link to that section? I auctally never saw it
hang on let me find it…
ah here we are- section F privacy:
If you collect any Personal Information from a User, you agree that you will only use the Personal Information you gather for the purpose for which the User has authorized it. You agree that you will reasonably secure any Personal Information you have gathered from the Services, and you will respond promptly to complaints, removal requests, and ‘do not contact’ requests from us or Users.
Also if you really want good legal advice, you should probably ask in r/legaladvice as they have better legal advice then us
I don’t have reddit…
You can make an account and you can use a throwaway email
Ok, so i’ll use firebase for the authentication system
Idk how to set this up, help?
I’ve set everything in the autehntication page: sign-up method, templates, etc.
What in the world do i have to do next?
Think, can you successfully sign in/up without issues…
Is it as secure as humanly possible?
Yes, the hash parameters are enough.
How do i make the log-in form and connect it to firebase
@khalby786 may know- he has experience with firebase
I have been summoned!
This article should help you:
Give the article a thorough read before you start coding so that you understand what is happening. If you have any questions, feel free to ask here although I might be really slow to respond because in my timezone it’s time for me to sleep. But you can still ask, I’ll reply as soon as I wake up! Or you can DM me.
OK, lemme just construct a privacy policy…
Yep, a privacy policy is essential.
Another word of advice to live by is that if you don’t need to store it, don’t store it. If you don’t need user emails or IPs, don’t store them.
Yes because:
- Even if you have a database breach, you don’t have that much to leak
- Your users are less suspicious of you
If you don’t hash passwords, your users will have little to no trust in you.
Actually, i’ll store user’s emails and IPs in case i need to email them about an emergency (like a security issue) or someone damaging the website, so i can ban their IP using AbuseIPDB™
How do they know i am not hashing passwords
Not that i don’t, i try to keep my website secure.
It will be quite obvious when they find their password in a paste.
Why not use the API to set up automated reports?
Are you using Glitch?
yeah.
Also, I’m a bit confused on what the “Starter Template” is. Is it just an empty HTML skeleton…?
Speaking of Privacy Policies and storing passwords, if I use GitHub oAuth for login and the only data I collect are their email addresses, do I need a privacy policy?
I’d say so. You are collecting some of their personal information.
Github’s oAuth consent screen should tell users that their email will be shared, but you should also state that on your website.
quick question, can kids under 13 build (and publish) websites? I just need it for my privacy policy.
Me too, like a few hours before 12:00 AM, do you live in europe?
(I kinda skimmed through the comments.)
Yes, and no. This data should only be accessed by people you trust. By default every website you go to get your IP. It is how you send data. But if you are storing that IP in a database, then you should stop and remove it. If that database was ever leaked, everyone’s IP would be leaked as well. Leaving them vulnerable to attacks.
I’m gonna use the website security 101:
Everytime a new user makes an account, it’s gonna generate a new random string based on the password, i’m gonna decide how it will randomize it (like, turn the password upside down, and add the first letter in the middle, etc.)
That string will be stored in the database, along with the username. So the password won’t actually be stored in the database, instead, it’s going to be stored somewhere on my notepad, along with that string, so i know it. And everytime a user enters that password, it’s gonna do the same thing that it did the first time when the user entered their password.
This is a very secure method of saving passwords since hackers, even if they know that string, they cannot ever ever ever enter the account without having to do a trillion of math equations.
So that’s basically called a hash.
No no no. It brake the law. But you can of make it say to put parent email. But the kids of them selves cannot of sign up to websites.
They can’t use Glitch in the first place.
Yep, Glitch deletes <13 accounts.
Excuse me, what? You plan to store people’s passwords in your notebook?
I highly recommend that you do not attempt to DIY a hashing algorithm, unless you really know what you are doing. Just use bcrypt or something in the SHA family.
That is not how it should be done.
I know what i am doing…
That was just a joke, i will not plan to publicize user’s passwords
I meant other than glitch, like local hosting
I know, it was just an example.
I will scatter the letters everywhere around and add random characters
Please just use a hashing algorithm, I don’t think you know how encryption works.
That is also not how it should be done.
The rules of law still apply
Ok well, I don’t really think its funny to store passwords in plaintext.
COPPA
Youse bycrpt. It my favorite
Yesss, I was searching for that! I thought it was named DMCA.
Ok. What they mean is, take the passwords, make a md5 or sha-256 hash of the password when they make the account. That is what you should store. Then when they login, hash the password they used in the same way you did when they made the account, and check if it matches.
What is DMCA?
©
US Copyright Act.
Ok ok. I don’t know because I am not in us
It’s like a law about copyright.
If someone uses copyrighted content on your website, you can take it down.
It stands for, Digital Millennium Copyright Act.
In order to use abuseipdb in glitch you would have to setup a IP regex thing with express
Thats ok! Online, its just best to assume US law as a lot of tech firms are based here.
Yes yes. Glitch and replit and GitHub are in us
What backend language do you plan on using @no_one? PHP has a lot of encryption tools built on.
I suggest to use of the php. I like it and use it .
NPM also has some good tools too.
Sure, what do most of you specialize in?
I was asking you the question.
You asked about php…
I really suggest NPM (this reason is not because I hate PHP) because there are a bunch of resources. If one thing doesn’t work, try another. Everything on there is open-sourced so you can look at the code if you suspect that something doesn’t seem right.
I mean there is Packagist if you want to use PHP but thats a debate for another time…
I wouldn’t use that project right now. There are some security flaws. You can see every file from the client side.
Php is my best Freind.You should use of it
?? Composer is npm for php and composer has a bunch of packages.
Belive it or not, you can link npm and composer.
Any ways this is getting very off the topic
I agree, shall we continue in the gallery topic?
https://support.glitch.com/t/cc0-templates-free-website-templates-for-everyone/33321/21
I get that, but if you look at my post above,
is the reason why I said that.
Well, you never did answer the original question, what backend language do you plan on using?
But what coding language you plan to use for of this project?
Yes, nobody can help you is you don’t tell us the language that you are making it. Stop evading the question because nobody can help you if you don’t tell us the language.
probably javascript.
*5
You cannot of make login with plain JavaScript
To be percise, please tell us what stack(combination of languages and frameworks) you will be using for this project.
I think they only know/use html/css/js. @no_one is this of true?
We will be using all the launguages that the ones who posted in this thread knows, tell me what launguages you know!
yeah… true
Please stop spamming my messages, let’s stop posting here for a while.
Since people don’t want my posts, i’ll be deleting them.
asp for the win lol
We are not spamming, we are just asking you some questions.
flask ftw- easy and in python.
we’re going to be using flask and phyton.
Flask was easier for smaller projects(chat) but when I started to build a megaproject out of it, it sort of grew out of hand, then I realized that at that point building it in express might be easier
But you just said you didn’t know any other languages other than HTML, CSS, and JS?
Flask may not be the best for this situation
I am learning phyton tho
Do you want @random just to do all the work for you?
yeah- it can be alright for some things. It does have ways of making auth pages,
No, why are you thinking that?
Because you just said you didn’t know python.
I’m not doing all the work, i’ll provide links- not work
guys, this is a topic about website login security (and data privacy), nobody cares what you use to run your websites
when did it say that?
yeah, node would be a good option.
but i would personally use flask
Yeah I’ve tried flask-oauth2 once with google, i ended up alternating between a bunch of examples to piece together some code. in the end it worked pretty nicely
but passport is cool too since it supports a LOT of login protocols
Please, get back on-topic, this is about to become a mega-thread.
I tried to tell them, but my post just got stuck trough all the chaos.
EVERYBODY TALK HERE:
https://support.glitch.com/t/cc0-templates-free-website-templates-for-everyone/33321
It’s already been done.
i think i misread the post, hold on.
I updated the title to reflect the mega-thread status.
Thought I drop this here as we talk about backend frameworks:
Rust and C++ are actually the fastest frameworks, with the MEANstack at a lowly number 116. Postgresql makes it a little faster.
erm, think this might be closed
Also, personally i think flask may be better for you, but I think another reason I switched was every time I made a change I would always have to fix one to three syntax errors which ended up being annoying. For some reason javascript makes it harder for me to make syntax errors, probaly because I’ve been coding in Java for a bit which is typed
this is getting way too offtopic, can you guys listen?
Talk here please:
https://support.glitch.com/t/cc0-templates-free-website-templates-for-everyone/33321/
it would still be offtopic if we moved to that thread also.
it would actually be more relevant to stay in here
So are you admitting you just want people to do all of your work voluntarily?
if we switch- it’ll get out of control
Based on his post history, it certainly seems so…
Wait, uh, can glitch_support merge threads? It would be nice if they move all the posts to the gallery topic.
No, i will do most of the work, the community will just suggest templates, and that’s it.
Well, how do you plan to make a login service client side?
oNLinE tUtOrIaLs
You will need Node or the php or other languages
You say that mockingly yet you don’t want to do them.
trust-a-me i will put myself a deadline.
Ty
But I think it impossible to make login and signup in the vanilla of js
phyton. i will be using phyton
Okay. Then start learning. Let’s not continue of this thread
Why don’t we not talk anywhere. This was resolved.
No, I think it’s best not to talk at all right now
I’m going to start of the flagging for off topic posts
look at my newest post i made in the topic
also by the way on topic of the “is it illegal…” didn’t someone mention r/legaladvice earlier? So you can go there for legal advice about passwords
Yes I tried to ask him to ask there but he won’t make an account.
Can we have this thread closed before we get to 300 replies?
no, at least not yet…I want to ask something…
@no_one, you said you’re making a website that needs to have a log in system, right? Well I am also trying to do that and I know that you need to use SQL to create a database to store all of the users’ information. So wouldn’t you know the password? I mean…how would you do it so that you can’t know a user’s password? It doesn’t make sense to me. (Sorry…I only just started learning JS and SQL…)
actually, JS is very much required in a login system…
ok, thanks, we’ll look at that when we get the time.
Please for the love of Octocat, do not bump.
Actually you don’t make a login system with vanilla JS - it would just be too hard and easily be hacked. You use HTML, and NodeJS.
Really and server side language works.
No, I mean HTML forms and you can use the attributes to send a Post request.
Wait tell me the situation before closing
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.