Thread: Username & Password

Results 1 to 1 of 1
  1. #1 Username & Password 
    Registered Member
    ur weird mate's Avatar
    Join Date
    Feb 2008
    Posts
    81
    Thanks given
    254
    Thanks received
    43
    Rep Power
    126
    Hello, I know must of you will say this is EzPz but this is purposely made for new beginners.

    What you're doing!
    Username:
    Simply making the username have a minimum of three characters long.
    Example: Your username must be 3 or 12 characters long. (Rsp / RuneScape12)

    What you're doing!
    Password:
    Simply making the password have a minimum of six characters long.
    Example: Your password must be 6 or 20 characters long. (ekj348 / joeynealstrong553819)


    What you're adding!
    [ USERNAME ]
    Attached image

    [ PASSWORD ]
    Attached image



    (CLIENT SIDED)

    Client class:
    Search for: public void login
    under:
    Code:
    if (k == 3) {
                    loginMessage1 = "";
                    loginMessage2 = "Invalid username or password.";
                    return;
                }
    add:
    Code:
       if (k == 26) {
                    loginMessage1 = "Your username must be longer than 2 characters.";
                    loginMessage2 = "Please retry!";
                    return;
                }
                if (k == 27) {
                    loginMessage1 = "Your password must be longer than 6 characters.";
                    loginMessage2 = "Please retry!";
                    return;
                }
    Save & Exit!
    We're now done with the client side.


    (SERVER SIDED)

    RS2LoginProtocol class:
    Search for: private static Player login
    under:
    Code:
    if (name.length() > 12) {
    			returnCode = 8;
    		}
    add:
    Code:
    if (name.length() < 3) {
    			returnCode = 26;
    		}
    		if (pass.length() < 6) {
    			returnCode = 27;
    		}
    Save & Exit!
    We're now done with the server side.


    Now test it for yourself, if you get any errors or have any problems with this just shoot me a message!
    Reply With Quote  
     

  2. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 10
    Last Post: 10-03-2010, 05:50 PM
  2. Cant type in Username or Password
    By Wiffles in forum Help
    Replies: 0
    Last Post: 06-07-2009, 05:12 AM
  3. Replies: 3
    Last Post: 02-04-2009, 02:26 AM
  4. how to make your username and password in 474 client
    By Rshadowkilla in forum Tutorials
    Replies: 0
    Last Post: 08-04-2008, 06:31 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •