Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3364 | Rev 3367 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3364 Rev 3366
Línea 242... Línea 242...
242
            mt_srand($seed, MT_RAND_MT19937);
242
            mt_srand($seed, MT_RAND_MT19937);
243
            $rand =  mt_rand();
243
            $rand =  mt_rand();
Línea 244... Línea 244...
244
            
244
            
Línea 245... Línea 245...
245
            
245
            
246
 
246
 
247
            $password  = password_hash('user-' . $currentUser->uuid . '-post-' . $post->uuid . '-timestamp-' . $timestamp . '-rand-' . $rand . '-share-key-' . $currentUser->share_key) ;
247
            $password  = md5('user-' . $currentUser->uuid . '-post-' . $post->uuid . '-timestamp-' . $timestamp . '-rand-' . $rand . '-share-key-' . $currentUser->share_key) ;
Línea 306... Línea 306...
306
            $userCheck = '';
306
            $userCheck = '';
307
            if($user && $timestamp > 0 && $rand > 0 && $password) {
307
            if($user && $timestamp > 0 && $rand > 0 && $password) {
308
                $userMapper = UserMapper::getInstance($this->adapter);
308
                $userMapper = UserMapper::getInstance($this->adapter);
309
                $userCheck = $userMapper->fetchOneByUuid($user);
309
                $userCheck = $userMapper->fetchOneByUuid($user);
310
                if($userCheck) {
310
                if($userCheck) {
311
                    $checkpassword  = password_hash('user-' . $userCheck->uuid . '-'.$type.'-' . $code . '-timestamp-' . $timestamp . '-rand-' . $rand . '-share-key-' . $userCheck->share_key) ;
311
                    $checkpassword  = md5('user-' . $userCheck->uuid . '-'.$type.'-' . $code . '-timestamp-' . $timestamp . '-rand-' . $rand . '-share-key-' . $userCheck->share_key) ;
312
                }
312
                }
313
            }
313
            }
Línea 314... Línea 314...
314
            
314