Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Does anyone know how to make a secure login/register page


  • Please log in to reply
8 replies to this topic

#1 MarshmallowMillicent

MarshmallowMillicent

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Gender:Female
  • Local time:08:54 PM

Posted 13 November 2017 - 02:06 AM

I need a tutorial about how to make a secure login/register page. Any help is appreciated.



BC AdBot (Login to Remove)

 


#2 wseng92

wseng92

  • Members
  • 27 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Malaysia
  • Local time:12:54 PM

Posted 14 November 2017 - 08:54 PM

What is the programming language ? 



#3 MarshmallowMillicent

MarshmallowMillicent
  • Topic Starter

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Gender:Female
  • Local time:08:54 PM

Posted 11 December 2017 - 10:42 PM

php



#4 wseng92

wseng92

  • Members
  • 27 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Malaysia
  • Local time:12:54 PM

Posted 12 December 2017 - 03:44 AM

php

So sad, I only know JAVA 



#5 RecursiveNerd

RecursiveNerd

  • Malware Study Hall Junior
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:54 AM

Posted 12 December 2017 - 11:41 AM

I don't use PHP, but there's plenty of articles and blogs out there to take a look at:

 

https://daveismyname.blog/login-and-registration-system-with-php

https://www.udemy.com/create-php-ajax-js-jquery-mysql-login-system-today/

https://www.google.com/search?q=php+login+register&rlz=1C1GGRV_enUS757US757&oq=php+login%2Fre&aqs=chrome.1.69i57j0l5.4533j0j7&sourceid=chrome&ie=UTF-8



#6 MarshmallowMillicent

MarshmallowMillicent
  • Topic Starter

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Gender:Female
  • Local time:08:54 PM

Posted 12 December 2017 - 11:54 AM

Java is fine. Do you know a way to make just a secure login system(along with a login page)? Everything else is covered.



#7 MarshmallowMillicent

MarshmallowMillicent
  • Topic Starter

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Gender:Female
  • Local time:08:54 PM

Posted 12 December 2017 - 11:59 AM

I don't use PHP, but there's plenty of articles and blogs out there to take a look at:
 
https://daveismyname.blog/login-and-registration-system-with-php
https://www.udemy.com/create-php-ajax-js-jquery-mysql-login-system-today/
https://www.google.com/search?q=php+login+register&rlz=1C1GGRV_enUS757US757&oq=php+login%2Fre&aqs=chrome.1.69i57j0l5.4533j0j7&sourceid=chrome&ie=UTF-8


Seems like a great course, but I don't really have money to pay for it :/

#8 gekas

gekas

  • Members
  • 14 posts
  • OFFLINE
  •  
  • Local time:11:54 PM

Posted 06 February 2018 - 07:44 AM

Java is fine. Do you know a way to make just a secure login system(along with a login page)? Everything else is covered.

 

There are no special security requirements for a login page except using https (you need to setup your web server to support https connections). All you need is basic understanding of html, php, and MySql.

 

1. Create a form with 'Login' and 'Password' fields. You will need Javascript/Ajax if you want your form to be shown as a popup/slidedown box, but in the simplest case (which looks nice enough) that will be a simple form that transfers to a post-login page. Note: use POST and not GET - we don't want the login/password to be shown in the browser's address string.

<form action="postlogin.php" method="post">
  <p>
    <label for="login">Login:</label>
    <input type="text" name="login" id="login" maxlength="32" autofocus required>
  </p>
  <p>
    <label for="password">Password:</label>
    <input type="password" name="password" id="password" maxlength="32" required>
  </p>
  <p>
    <input type="submit" value="Sign In">
  </p>
</form>

2. The post-login page receives the entered data as elements of the $POST array, for example 

  $login =  $_POST['login'];
  $password = $_POST['password'];

3. Now that you have user's credentials, search for the login in your user database (and check if the password is correct).

 

Basically it is simple as this. Of course the resulting code will be much larger because you will need to add css styles, mysql requests to read used preferences, and so on. NOTE: always use 'mysql_real_escape_string' function to prevent code injection.

 

If you are still not sure how to implement this, consider using some CMS (Wordpress for instance) that handles all such things without limiting the developer too much.


Edited by gekas, 06 February 2018 - 07:48 AM.


#9 wseng92

wseng92

  • Members
  • 27 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Malaysia
  • Local time:12:54 PM

Posted 06 February 2018 - 08:21 PM

Java is fine. Do you know a way to make just a secure login system(along with a login page)? Everything else is covered.

Yes,but it just only JAVA, and it is offline application






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users