Commits

Christian Salazar  committed 8d58569 Merge
  • Participants
  • Parent commits e1d6c54, 1e2dee7

Comments (0)

Files changed (3)

File data/cruge-data-model-postgres.sql

   regdate bigint NULL ,
   actdate bigint NULL ,
   logondate bigint NULL ,
-  username VARCHAR(45) NULL ,
+  username VARCHAR(64) NULL ,
   email VARCHAR(45) NULL ,
-  password VARCHAR(45) NULL,
+  password VARCHAR(64) NULL,
   authkey VARCHAR(100) NULL,
   state integer NULL DEFAULT 0 ,
   totalsessioncounter integer NULL DEFAULT 0 ,

File data/cruge-data-model.sql

   `regdate` BIGINT(30) NULL ,
   `actdate` BIGINT(30) NULL ,
   `logondate` BIGINT(30) NULL ,
-  `username` VARCHAR(45) NULL ,
+  `username` VARCHAR(64) NULL ,
   `email` VARCHAR(45) NULL ,
-  `password` VARCHAR(45) NULL COMMENT 'md5 encrypted' ,
+  `password` VARCHAR(64) NULL COMMENT 'Hashed password' ,
   `authkey` VARCHAR(100) NULL COMMENT 'llave de autentificacion' ,
   `state` INT(11) NULL DEFAULT 0 ,
   `totalsessioncounter` INT(11) NULL DEFAULT 0 ,

File models/data/CrugeStoredUser.php

 				,'pattern'=>'/^[a-zA-Z0-9@#$%]{6,20}$/'
 				, 'message'=>CrugeTranslator::t("la clave solo puede tener digitos letras o los simbolos @#$% con longitud entre 6 y 20 caracteres")),
 			
-			array('username, password', 'length', 'max'=>45),
+			array('username, password', 'length', 'max'=>64),
 			array('state', 'numerical', 'integerOnly'=>true),
 			array('authkey', 'length', 'max'=>100),
 			array('email', 'email'),