Proyectos de Subversion LeadersLinked - Services

Rev

Rev 167 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 167 Rev 214
Línea 1074... Línea 1074...
1074
                ob_end_clean();
1074
                ob_end_clean();
Línea 1075... Línea 1075...
1075
                
1075
                
1076
                if(!$email || !$password) {
1076
                if(!$email || !$password) {
1077
                    return new JsonModel([
1077
                    return new JsonModel([
1078
                        'success' => false,
1078
                        'success' => false,
1079
                        'data' => 'ERROR_WEBSERVICE_PASSWORD_ENCRYPTION_FAILED',
1079
                        'data' => 'ERROR_WEBSERVICE_PASSWORD_ENCRYPTION_FAILED 1',
1080
                    ]);
1080
                    ]);
1081
                } 
1081
                } 
Línea 1082... Línea 1082...
1082
            } else if($encrypter == 'RNCryptor') {
1082
            } else if($encrypter == 'RNCryptor') {
Línea 1095... Línea 1095...
1095
                error_log("Password Decrypted : " . $password . PHP_EOL);
1095
                error_log("Password Decrypted : " . $password . PHP_EOL);
Línea 1096... Línea 1096...
1096
                
1096
                
1097
                if(!$email || !$password) {
1097
                if(!$email || !$password) {
1098
                    return new JsonModel([
1098
                    return new JsonModel([
1099
                        'success' => false,
1099
                        'success' => false,
1100
                        'data' => 'ERROR_WEBSERVICE_PASSWORD_ENCRYPTION_FAILED',
1100
                        'data' => 'ERROR_WEBSERVICE_PASSWORD_ENCRYPTION_FAILED 2',
1101
                    ]);
1101
                    ]);
Línea 1102... Línea 1102...
1102
                } 
1102
                } 
Línea 1113... Línea 1113...
1113
                $emailDecrypted = AesCipher::decrypt($device->aes,$email);
1113
                $emailDecrypted = AesCipher::decrypt($device->aes,$email);
1114
                $passwordDecrypted = AesCipher::decrypt($device->aes,$password);
1114
                $passwordDecrypted = AesCipher::decrypt($device->aes,$password);
1115
                if($emailDecrypted->hasError() || $passwordDecrypted->hasError()) {
1115
                if($emailDecrypted->hasError() || $passwordDecrypted->hasError()) {
1116
                    return new JsonModel([
1116
                    return new JsonModel([
1117
                        'success' => false,
1117
                        'success' => false,
1118
                        'data' => 'ERROR_WEBSERVICE_PASSWORD_ENCRYPTION_FAILED',
1118
                        'data' => 'ERROR_WEBSERVICE_PASSWORD_ENCRYPTION_FAILED 3',
1119
                    ]);
1119
                    ]);
1120
                }
1120
                }
Línea 1121... Línea 1121...
1121
                
1121
                
1122
                $email = $emailDecrypted->getData();
1122
                $email = $emailDecrypted->getData();