Web register

Results 1 to 7 of 7
  1. #1
    Registered parara12 is offline
    MemberRank
    Dec 2017 Join Date
    19Posts

    Web register


    RaGEZONE Recommends

    RaGEZONE Recommends

    Hello everyone, I'm getting into programming and I need your help!I'm trying to make a web registration and if I do I will share with you all!I need the right database queries!These are the queries I use!
    Click image for larger version. 

Name:	Безымянный.png 
Views:	69 
Size:	9.5 KB 
ID:	162254
    And it seems like I got all the information in the database! But when I try to enter the game, I get an error "Invalid login or password"
    Click image for larger version. 

Name:	вфы.png 
Views:	54 
Size:	7.3 KB 
ID:	162255
    Write the right request!


  2. #2
    Account Upgraded | Title Enabled! djbadboys38 is offline
    True MemberRank
    Aug 2010 Join Date
    TanzanyaLocation
    1,149Posts

    Re: Web register

    Quote Originally Posted by parara12 View Post
    Hello everyone, I'm getting into programming and I need your help!I'm trying to make a web registration and if I do I will share with you all!I need the right database queries!These are the queries I use!
    Click image for larger version. 

Name:	Безымянный.png 
Views:	69 
Size:	9.5 KB 
ID:	162254
    And it seems like I got all the information in the database! But when I try to enter the game, I get an error "Invalid login or password"
    Click image for larger version. 

Name:	вфы.png 
Views:	54 
Size:	7.3 KB 
ID:	162255
    Write the right request!
    i think your registered account id isnt going to 1-2-3-4...

  3. #3
    ◝(⁰▿⁰)◜Smile◝ (⁰▿⁰)◜ Taiga is offline
    ModeratorRank
    May 2007 Join Date
    InternetLocation
    2,504Posts

    Re: Web register

    You should provide us a snippet of your registration code.

    Are you setting the id inside the array?
    If you are, try to remove that line.

    Also, try using the modern array syntax instead of the older one. You can just use brackets [ .. ] instead of array( .. ) the old syntax should be avoided in new PHP applications.


    Moderator & Developer
    I CAN NOT HELP YOU WITH YOUR SERVER, USE THE CORRECT HELP SECTION INSTEAD.
    I AM ONLY TAIGA ON RAGEZONE!
    BE CAREFUL WITH IMPOSTORS!


    DO NOT PM ME FOR GAME RELATED QUESTIONS, THESE MESSAGES WILL BE IGNORED!

    The Rules | Discord | MMORPG Extra | Contact Me


  4. #4
    Registered parara12 is offline
    MemberRank
    Dec 2017 Join Date
    19Posts

    Re: Web register

    Quote Originally Posted by Taiga View Post
    You should provide us a snippet of your registration code.

    Are you setting the id inside the array?
    If you are, try to remove that line.

    Also, try using the modern array syntax instead of the older one. You can just use brackets [ .. ] instead of array( .. ) the old syntax should be avoided in new PHP applications.
    <?php require_once 'connection.php'; ?>
    <?php require_once 'library.php'; ?>
    <?php

    if(chkLogin()){
    header("Location: home.php");
    }
    ?>
    <?php


    if(isset($_POST['reg'])){

    $fname = $_POST['fname'];
    $lname = $_POST['lname'];
    $email = $_POST['email'];
    $temp = $_POST['pass'];
    $options = array('cost' => 10);
    $pass = password_hash($temp, PASSWORD_BCRYPT, $options);

    $arrays = array(

    "accountName" => $fname,
    "email" => $fname,
    "password" => $pass,
    "pin" => $lname


    );

    $query = chkemail($email);
    if($query){
    register($arrays);
    header("Location: login.php");
    }
    else{
    echo "Email already registered!";
    echo"<br>";
    echo "Please <a href='register.php'>Register</a> with another email ID";
    }
    }


    ?>

  5. #5
    Makrotek LLC Solutions master_unknown is offline
    True MemberRank
    Oct 2004 Join Date
    HellLocation
    842Posts

    Re: Web register

    PASSWORD_BCRYPT
    What type of encryption is this?
    Looking for Custom Launcher for your Private Server?
    We create custom launchers for ANY Private Servers.


    Contact: Facebook Messenger (Quick Response)
    Skype: QstarMacro@gmail.com


  6. #6
    Registered parara12 is offline
    MemberRank
    Dec 2017 Join Date
    19Posts

    Re: Web register

    Quote Originally Posted by master_unknown View Post
    What type of encryption is this?
    60-character encryption which uses the ID "$2y$"
    algoritm
    CRYPT_BLOWFISH
    Last edited by parara12; 4 Days Ago at 05:26 PM.

  7. #7
    Makrotek LLC Solutions master_unknown is offline
    True MemberRank
    Oct 2004 Join Date
    HellLocation
    842Posts

    Re: Web register

    So granted you made it work, how will that be implemented in Launcher?
    Can it be retrieved by HTTPWebrequest? API? Or direct Database Connection? Or launcher must have the same encryption?
    Looking for Custom Launcher for your Private Server?
    We create custom launchers for ANY Private Servers.


    Contact: Facebook Messenger (Quick Response)
    Skype: QstarMacro@gmail.com





Advertisement