Ricardo Obregón avatar Ricardo Obregón committed d4b9a49

Agregados mensajes para la autenticación básica.

Comments (0)

Files changed (3)

messages/es/logger.php

     'This page displays the roles, tasks and operations that are required by the current user but unassigned. This message is displayed because CrugeModule::rbacSetupEnabled = true' =>
     'Esta página le muestra los roles, tareas y operaciones requeridas que el usuario actual no tiene asignadas. Este mensaje aparece porque CrugeModule::rbacSetupEnabled = true',
     'Assignments required by the user' => 'Permisos requeridos por el usuario',
+    'Returned User' => 'Usuario Retornado',
 );

messages/es/logon.php

     'Security code is mandatory' => 'El código de seguridad es requerido',
     'Security code is invalid' => 'El código de seguridad no es correcto',
     '\'{attribute}\' already in use' => "El '{attribute}' indicado ya está en uso",
-    'You also can login with' => 'También puedes iniciar sesión con',
+    'You also can login with' => 'También puede iniciar sesión con',
+    'Maybe your password doesn\'t match because you have set up \'useEncryptedPassword = true\' when you were installing Cruge, try \'false\' instead' =>
+    'Quizá su clave no coincide porque ha configurado \'useEncryptedPassword = true\' estando en la fase de instalación, pruebe usando \'false\'',
 );

models/auth/CrugeAuthDefault.php

 
 		$model = Yii::app()->user->um->loadUser($this->username);
 
-		Yii::log(__METHOD__." usuario retornado es:\n".CJSON::encode($model),"info");
+		Yii::log(__METHOD__.' '.CrugeTranslator::t('logger', 'Returned User').":\n".CJSON::encode($model), "info");
 
 		$this->_userinstance = null;
 		if($model != null)
 					// y el usuario recien creado trae una clave no encritpada
 					if(CrugeUtil::config()->useEncryptedPassword == true){
 						echo Yii::app()->user->ui->setupAlert(
-							"Quiza su clave no coincide porque ha configurado 'useEncryptedPassword = true' estando en la fase de instalacion, pruebe deshabilitandolo");
+							CrugeTranslator::t('logon', 'Maybe your password doesn\'t match because you have set up \'useEncryptedPassword = true\' when you were installing Cruge, try \'false\' instead'
+                            ));
 					}
 				}
 				$this->errorCode=self::ERROR_PASSWORD_INVALID;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.