Register not validate

This commit is contained in:
José Luis Garrido Labrador
2018-10-21 21:26:09 +02:00
parent 714c840ab5
commit 0b89d4ee91
2 changed files with 3 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
<?php
/*$filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']);
$filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']);
if (php_sapi_name() === 'cli-server' && is_file($filename)) {
return false;
}*/
}
require_once __DIR__ . '/src/app.php';
$app->run();

View File

@@ -54,7 +54,7 @@ function register($email,$emailre,$pass,$passre,$nick,$db){
return 'POST_ERROR';
$state = $db->register($email,$pass,$nick);
if($state == 'CORRECT') {
return checklogin($email, $pass,$db);
return "";
}else {
return $state;
}