is je wachtwoord veilig

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
Diablo Gamer
Berichten: 1394
Lid geworden op: 02 jan 2004, 20:33
Locatie: Dalen/Drenthe/Holland
Contacteer:

is je wachtwoord veilig

Bericht door Diablo Gamer » 31 okt 2005, 23:57

ik ben op zoek naar een mod die je laat zien of je wachtwoord veilig is ( zo iets als je een nieuwe msn/hotmail adres aan maakt )
It`s nice to be important, but it`s more important to be nice.

Gebruikersavatar
Diablo Gamer
Berichten: 1394
Lid geworden op: 02 jan 2004, 20:33
Locatie: Dalen/Drenthe/Holland
Contacteer:

Bericht door Diablo Gamer » 02 nov 2005, 00:31

kick
It`s nice to be important, but it`s more important to be nice.

Gebruikersavatar
mosymuis
Berichten: 6940
Lid geworden op: 05 feb 2003, 14:00
Locatie: Amsterdam
Contacteer:

Bericht door mosymuis » 02 nov 2005, 10:48

Code: Selecteer alles

<script language="javascript" type="text/javascript">
<!--
window.onload = function()
{
	passwordObj = document.forms[0].elements['new_password'];
	
	passwordBox = document.createElement('div');
	passwordBox.style.border = '3px solid #CC0000';
	passwordBox.style.padding = '5px';
	passwordBox.style.margin = '3px 0';
	passwordBox.style.display = 'none';
	passwordBox.style.width = '100%';
	
	passwordObj.parentNode.appendChild(passwordBox);
	
	function charExists(str, chrs)
	{
		for(i=0; i < str.length; i++)
		{
			for(j=0; j < chrs.length; j++)
			{
				if ( str.substr(i, 1) == chrs.substr(j, 1) )
				{
					return true;
				}
			}
		}
		return false;
	}
	
	passwordObj.onkeyup = function()
	{	
		passwordVlu = passwordObj.value;
		
		if ( passwordVlu.length > 1 )
		{
			passwordBox.style.display = 'inline';
			
			approved = false
			if ( passwordVlu.length < 6 )
			{
				text = 'Geef een wachtwoord op met ten minste 6 tekens.';
			}
			else if ( !charExists(passwordVlu, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') )
			{
				text = 'Gebruik hOoFdLeTtErS in je wachtwoord.';
			}
			else if ( !charExists(passwordVlu, '0123456789') )
			{
				text = 'Gebruik cij3rs in je wachtwoord.';
			}
			else
			{
				approved = true;
				text = 'Je wachtwoord is veilig!';
			}
			
			passwordBox.style.border = approved ? '3px solid #006600' : '3px solid #CC0000';
			passwordBox.style.color = approved ? '#006600' : '#CC0000';
			
			passwordBox.innerHTML = text;
		}
		else
		{
			passwordBox.style.display = 'none';
		}
	}
}
//-->
</script>
Als je dit toevoegt aan je profile_add_body.tpl verschijnt er bij het typen van een nieuw wachtwoord een box die op drie criteria (lengte, hoofdletters en cijfers) een beoordeling geeft op het wachtwoord.

Gebruikersavatar
Diablo Gamer
Berichten: 1394
Lid geworden op: 02 jan 2004, 20:33
Locatie: Dalen/Drenthe/Holland
Contacteer:

Bericht door Diablo Gamer » 02 nov 2005, 11:36

jammer dat ie het niet doet maar staat hij wel eens goed mosymuis

Code: Selecteer alles

<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post">

{ERROR_BOX}

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr> 
		<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
	</tr>
</table>

<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
	<tr> 
		<th class="thHead" colspan="2" height="25" valign="middle">{L_REGISTRATION_INFO}</th>
	</tr>
	<tr> 
		<td class="row2" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
	</tr>
	<!-- BEGIN switch_namechange_disallowed -->
	<tr> 
		<td class="row1" width="38%"><span class="gen">{L_USERNAME}: *</span></td>
		<td class="row2"><input type="hidden" name="username" value="{USERNAME}" /><span class="gen"><b>{USERNAME}</b></span></td>
	</tr>
	<!-- END switch_namechange_disallowed -->
	<!-- BEGIN switch_namechange_allowed -->
	<tr> 
		<td class="row1" width="38%"><span class="gen">{L_USERNAME}: *</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="username" size="25" maxlength="25" value="{USERNAME}" /></td>
	</tr>
	<!-- END switch_namechange_allowed -->
	<tr> 
		<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}: *</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" /></td>
	</tr>
	<!-- BEGIN switch_edit_profile -->
	<tr> 
	  <td class="row1"><span class="gen">{L_CURRENT_PASSWORD}: *</span><br />
		<span class="gensmall">{L_CONFIRM_PASSWORD_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="password" class="post" style="width: 200px" name="cur_password" size="25" maxlength="32" value="{CUR_PASSWORD}" />
	  </td>
	</tr>
	<!-- END switch_edit_profile -->
	<tr> 
	  <td class="row1"><span class="gen">{L_NEW_PASSWORD}: *</span><br />
		<span class="gensmall">{L_PASSWORD_IF_CHANGED}</span></td>
	  <td class="row2"> 
		<input type="password" class="post" style="width: 200px" name="new_password" size="25" maxlength="32" value="{NEW_PASSWORD}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_CONFIRM_PASSWORD}: * </span><br />
		<span class="gensmall">{L_PASSWORD_CONFIRM_IF_CHANGED}</span></td>
	  <td class="row2"> 
		<input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="{PASSWORD_CONFIRM}" />
	  </td>
<script language="javascript" type="text/javascript">
<!--
window.onload = function()
{
	passwordObj = document.forms[0].elements['new_password'];
	
	passwordBox = document.createElement('div');
	passwordBox.style.border = '3px solid #CC0000';
	passwordBox.style.padding = '5px';
	passwordBox.style.margin = '3px 0';
	passwordBox.style.display = 'none';
	passwordBox.style.width = '100%';
	
	passwordObj.parentNode.appendChild(passwordBox);
	
	function charExists(str, chrs)
	{
		for(i=0; i < str.length; i++)
		{
			for(j=0; j < chrs.length; j++)
			{
				if ( str.substr(i, 1) == chrs.substr(j, 1) )
				{
					return true;
				}
			}
		}
		return false;
	}
	
	passwordObj.onkeyup = function()
	{	
		passwordVlu = passwordObj.value;
		
		if ( passwordVlu.length > 1 )
		{
			passwordBox.style.display = 'inline';
			
			approved = false
			if ( passwordVlu.length < 6 )
			{
				text = 'Geef een wachtwoord op met ten minste 6 tekens.';
			}
			else if ( !charExists(passwordVlu, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') )
			{
				text = 'Gebruik hOoFdLeTtErS in je wachtwoord.';
			}
			else if ( !charExists(passwordVlu, '0123456789') )
			{
				text = 'Gebruik cij3rs in je wachtwoord.';
			}
			else
			{
				approved = true;
				text = 'Je wachtwoord is veilig!';
			}
			
			passwordBox.style.border = approved ? '3px solid #006600' : '3px solid #CC0000';
			passwordBox.style.color = approved ? '#006600' : '#CC0000';
			
			passwordBox.innerHTML = text;
		}
		else
		{
			passwordBox.style.display = 'none';
		}
	}
}
//-->
</script>
Laatst gewijzigd door Diablo Gamer op 02 nov 2005, 16:40, 1 keer totaal gewijzigd.
It`s nice to be important, but it`s more important to be nice.

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 02 nov 2005, 11:38

Zet het is helemaal bovenaan die file?

Gebruikersavatar
Diablo Gamer
Berichten: 1394
Lid geworden op: 02 jan 2004, 20:33
Locatie: Dalen/Drenthe/Holland
Contacteer:

Bericht door Diablo Gamer » 02 nov 2005, 12:20

nop ook niet gewerkt

ik heb een nieuwe topic geopend
Laatst gewijzigd door Diablo Gamer op 02 nov 2005, 12:26, 1 keer totaal gewijzigd.
It`s nice to be important, but it`s more important to be nice.

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 02 nov 2005, 12:24

Op welk forum heb je het gebruikt? Want hier: http://www.torrentgame.nl/forum/profile ... greed=true staat hij niet in de bron ;)

Gebruikersavatar
Diablo Gamer
Berichten: 1394
Lid geworden op: 02 jan 2004, 20:33
Locatie: Dalen/Drenthe/Holland
Contacteer:

Bericht door Diablo Gamer » 02 nov 2005, 12:27

het gaat niet om mijn forum maar om een forum waar ik ( alweer ) als hack installer ben

om deze forum gaat het schoolforum.be
It`s nice to be important, but it`s more important to be nice.

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 02 nov 2005, 12:43

In firefox werkt hij daar.

Gebruikersavatar
mosymuis
Berichten: 6940
Lid geworden op: 05 feb 2003, 14:00
Locatie: Amsterdam
Contacteer:

Bericht door mosymuis » 02 nov 2005, 13:44

paulus schreef:In firefox werkt hij daar.
In Interner Explorer ook... In de SchoolForum.be layout ziet de layer er in Mozilla wel erg smerig uit; verander display = 'inline' liever naar 'block'.

Overigens is dit niet bedoeld als kant en klare mod; ik heb het scriptje geschreven uit verveling en als basis voor wat je probeert te bereiken.

Gebruikersavatar
Diablo Gamer
Berichten: 1394
Lid geworden op: 02 jan 2004, 20:33
Locatie: Dalen/Drenthe/Holland
Contacteer:

Bericht door Diablo Gamer » 02 nov 2005, 16:39

dat kan klopen dat de layout erg lelijk is want we zijn daar me bezig
It`s nice to be important, but it`s more important to be nice.

mac-rolec
Berichten: 344
Lid geworden op: 16 jun 2005, 10:39
Contacteer:

Bericht door mac-rolec » 02 nov 2005, 16:55

Hij bedoelt de lay-out van die extra box.

Gesloten