+ 1

How do i create a log in / sign up page for a website?

how is a login /signup page page made? i mean how are login credentials such as password and username matched with the database, how is it known whether an email used is valid.. in real time? i know how it's done in c++, but i would like to know how it is done for a webpage. thankxx 😀😀😀

30th Jun 2017, 10:58 AM
Sidharth Pattnaik
3 Antworten
+ 2
Email validation can be easily done in Javascript using regular expressions - before it is ever sent to the server. However, just because an email is "valid" does not ensure it is "legitimate". The only way I can see to truly know if it is legitimate is to send an email to that address, with a link for the user to confirm that they received it. Many sites use this method to validate/activate a user's account. Hope that helps. :)
30th Jun 2017, 11:08 AM
Eric Hendrix
+ 2
check out my code on that and you'll get an idea to it. Well its not so related but it will give u a heads up. oh btw, that is done using back-end programming languages. its a bit complex but nothing is too difficult to learn. I am also learning it so u can journey with me. ✌ https://code.sololearn.com/W8343orICzwP/?ref=app
1st Jul 2017, 5:48 AM
Ata
Ata - avatar
+ 1
To add: confirming a username and password can be tricky if you are concerned with security (which you should always be). The best scheme I have seen is, A) use an SSL cert, B) send a hash of the username+password and validate the hash against the database. Whatever you do - try to avoid posting the plain text username/password to the server for credential validation. Use a hash, or some sort of encryption, keeping in mind that a web page is client side and can be deconstructed by a user. Obfuscate as much as possible without giving the user a clue as to how you are doing it (as much as you can, anyway).
30th Jun 2017, 11:14 AM
Eric Hendrix