Jump to content
MakeWebGames

Recommended Posts

Posted

This is not my modification, but I have modified it to fit with Mccodes. My friend, Jason made this, but I thought it may be a cool addition to your games.

Open up register.php and find:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Replace it with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Under that add:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Replace:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

With just:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Also, you wouldn't be needing:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And thats it. Basically all it does is generate a password if you can think of one. You can choose the length of the password too. Hope you all like it :-)

Posted

Re: Generate Password

So ::

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Would Be::

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Or Something Like That

Posted

Re: Generate Password

Well, it generates a password and the user can note it down on a peice of paper or something.

You click generate and it comes up like: gkdo4gn, so the user knows what the outcome is.

Posted

Re: Generate Password

 

now all we need is one that sends to email

This isn't a security verification, The Corpse, therefore there is no need to send to an email.

That just makes things more complicated for the user, also it's time consuming.

Posted

Re: Generate Password

Try something like this. Just mess about with it, It's pretty cool. I made it just now.

<script language="JavaScript1.1">

function randomPassword(length)

{

chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";

pass = "";

for(x=0;x<length;x++)

{

i = Math.floor(Math.random() * 62);

pass += chars.charAt(i);

}

return pass;

}

function Generate_Password()

{

var pass=randomPassword(6);

document.getElementById("GetValue_b").value = pass;

document.getElementById("GetValue_b").type = "text";

alert("Your password is: "+pass);

setTimeout("returnField();", 1000);

}

function returnField()

{

document.getElementById("GetValue_b").type = "text";

}

/*Made by oXi.*/

</script>

<input type="password" name="password" value="" id="GetValue_b">Generate Password

Posted

Re: Generate Password

 

Try something like this. Just mess about with it, It's pretty cool. I made it just now.

<script language="JavaScript1.1">

function randomPassword(length)

{

chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";

pass = "";

for(x=0;x<length;x++)

{

i = Math.floor(Math.random() * 62);

pass += chars.charAt(i);

}

return pass;

}

function Generate_Password()

{

var pass=randomPassword(6);

document.getElementById("GetValue_b").value = pass;

document.getElementById("GetValue_b").type = "text";

alert("Your password is: "+pass);

setTimeout("returnField();", 1000);

}

function returnField()

{

document.getElementById("GetValue_b").type = "text";

}

/*Made by oXi.*/

</script>

<input type="password" name="password" value="" id="GetValue_b">Generate Password

 

 

Funny how 'Your' code is found here considering you made it 'Just' now :lol:

http://i-code.co.uk/javascript/randompassword.php

and

http://www.javascriptkit.com/script/scr ... rate.shtml

and

http://javascript.internet.com/password ... rator.html

  • 2 weeks later...
  • 2 weeks later...
Posted

Re: Generate Password

 

How would this stop multi's or fake email addresses?

Eeeeh? The purpose of this mod is - if the user can't think of a password, he can just generate one. It doesn't stop multi's or anything like that (I'm not a good enough coder to do those sorts of things yet).

You can't use it to exploit anything. It's just JavaScript, which this JavaScript has no connection to your game(s)

  • 4 weeks later...
Posted

Re: Generate Password

 

Which is indeed what the topic title suggests:

"GENERATE PASSWORD"

Not:

"GENERATE PASSWORD, STOP HACKS, STOP MULTIS, STOP ANYTHING ELSE..."

Damn people..

Thanks MTG. :mrgreen:

Posted

Re: Generate Password

why not have the random password grnerated when the user clicks the button and it sends the password to the email....

$pass=rand(1000, 99990);

and use the mail function. I done that with my register page.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...