ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 15449

[Tutorial] Proper Login/Register

by sdk - 11-06-2016 - 02:15 AM
#1
Sorry for pastebin link but I can't post the actual tut due to Firewall, if a staff member could somehow copy the text from the link to the actual post that'd be great!

http://pastebin.com/HwCBniEq
Reply
#2
Tanks for this post!
Reply
#3
(11-06-2016 - 02:15 AM)sdk Wrote: Sorry for pastebin link but I can't post the actual tut due to Firewall, if a staff member could somehow copy the text from the link to the actual post that'd be great!

http://pastebin.com/HwCBniEq

I have tried, but it will not post. the pastebin link is still fine though! Thank you for sharing this tutorial, very insightful. ^^
Are you a guest to this site? Click the image below and sign up today!
[Image: FTYbRmR.gif]
Reply
#4
(11-06-2016 - 04:52 PM)Red Wrote:
(11-06-2016 - 02:15 AM)sdk Wrote: Sorry for pastebin link but I can't post the actual tut due to Firewall, if a staff member could somehow copy the text from the link to the actual post that'd be great!

http://pastebin.com/HwCBniEq

I have tried, but it will not post. the pastebin link is still fine though! Thank you for sharing this tutorial, very insightful. ^^

Thanks for trying and thanks for the kind words, look forward to more :D
Reply
#5
(11-06-2016 - 07:51 PM)sdk Wrote:
(11-06-2016 - 04:52 PM)Red Wrote:
(11-06-2016 - 02:15 AM)sdk Wrote: Sorry for pastebin link but I can't post the actual tut due to Firewall, if a staff member could somehow copy the text from the link to the actual post that'd be great!

http://pastebin.com/HwCBniEq

I have tried, but it will not post. the pastebin link is still fine though! Thank you for sharing this tutorial, very insightful. ^^

Thanks for trying and thanks for the kind words, look forward to more :D

Yeah I don't think that script goes well with the site. All I can suggest is making individual pastebin links for the code.
Are you a guest to this site? Click the image below and sign up today!
[Image: FTYbRmR.gif]
Reply
#6
(11-06-2016 - 08:23 PM)Red Wrote:
(11-06-2016 - 07:51 PM)sdk Wrote:
(11-06-2016 - 04:52 PM)Red Wrote:
(11-06-2016 - 02:15 AM)sdk Wrote: Sorry for pastebin link but I can't post the actual tut due to Firewall, if a staff member could somehow copy the text from the link to the actual post that'd be great!

http://pastebin.com/HwCBniEq

I have tried, but it will not post. the pastebin link is still fine though! Thank you for sharing this tutorial, very insightful. ^^

Thanks for trying and thanks for the kind words, look forward to more :D

Yeah I don't think that script goes well with the site. All I can suggest is making individual pastebin links for the code.

It's fine its just got JS in it so the firewall thinks its a possible XSS.
Reply
#7
You should use password_hash and password_verify instead of sha1 for passwords, and increase the length of the password column to 60.

Also, instead of generating a random string for user identification, use a int and auto increment it.

Other than that, your code is great! :D
Reply
#8
(11-10-2016 - 11:30 PM)hax67 Wrote: You should use password_hash and password_verify instead of sha1 for passwords, and increase the length of the password column to 60.

Also, instead of generating a random string for user identification, use a int and auto increment it.

Other than that, your code is great! :D

I usually do that but this is what I use for certain things were UID is interacted with so its harder to guess someones UUID.
Reply
#9
My login and register form is quite similar, thanks for the post though there's a few things my code could improve on.
Reply
#10
wow thanks for sharing this buddy
[Image: RQyFiiZ.png]
Reply

Users browsing: 3 Guest(s)