Commit a36b98eb authored by ohertel's avatar ohertel

'generate password' passwords are 8 characters long now and include 0-9, a-z,...

'generate password' passwords are 8 characters long now and include 0-9, a-z, A-Z and _. This is only a proposal password, no one HAS to use it.
parent cc0a02a5
// $Header: /cvsroot/tikiwiki/tiki/lib/tiki-js.js,v 1.3 2003-01-06 18:23:12 lrargerich Exp $
// $Header: /cvsroot/tikiwiki/tiki/lib/tiki-js.js,v 1.4 2003-05-07 16:20:01 ohertel Exp $
function chgArtType() {
if(document.getElementById('articletype').value=='Article') {
......@@ -23,10 +23,10 @@ function setMenuCon(foo1,foo2) {
}
function genPass(w1,w2,w3){
vo="aeiou";
co="bcdfgjklmnprstvwxz";
vo="aeiouAEIOU";
co="bcdfgjklmnprstvwxzBCDFGHJKLMNPQRSTVWXYZ0123456789_";
s=Math.round(Math.random());
l=Math.round(Math.random()*3)+4;
l=8;
p='';
for(i=0; i < l; i++){
if (s){
......
......@@ -798,10 +798,10 @@ class TikiLib {
/*shared*/ function genPass()
{
$vocales="aeiou";
$consonantes="bcdfghjklmnpqrstvwxyz";
$vocales="aeiouAEIOU";
$consonantes="bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ0123456789_";
$r='';
for($i=0; $i<5; $i++){
for($i=0; $i<8; $i++){
if ($i%2){
$r.=$vocales{rand(0,strlen($vocales)-1)};
}else{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment