diff --git a/assets/modul-js/login.js b/assets/modul-js/login.js index 57c2dc4..5f3821d 100755 --- a/assets/modul-js/login.js +++ b/assets/modul-js/login.js @@ -53,7 +53,7 @@ $(document).ready(function () { }, complete: function (e, xhr, settings) { if (e.status === 200) { - $("#status").html("Success: Redirecting to dashboard "); + $("#status").html("Success: Redirecting to dashboard. "); setTimeout(function () { window.location.href = "/dashboard"; // The URL that will be redirected too. }, 1000); diff --git a/assets/modul-js/register.js b/assets/modul-js/register.js index 5bc7c14..6ae4a4b 100755 --- a/assets/modul-js/register.js +++ b/assets/modul-js/register.js @@ -51,7 +51,7 @@ var Script = function () { }, complete: function(e, xhr, settings){ if(e.status == 200){ - $("#status").html("Success: Redirecting to dashboard "); + $("#status").html("Success: Please login again. "); setTimeout(function () { window.location.href = "/dashboard"; // The URL that will be redirected too. }, 3000); diff --git a/includes/func.class/login.func.php b/includes/func.class/login.func.php index d9b1f56..04e0d1d 100755 --- a/includes/func.class/login.func.php +++ b/includes/func.class/login.func.php @@ -119,18 +119,18 @@ $app->post('/register/check-verification', function(Request $request) { global $db; $verification_no = $request->get('verification_no'); $username = $request->get('username'); - $db->bind('verification_no', $verification_no); $db->bind('username', $username); - $row = $db->query("SELECT * FROM mobile_verifications WHERE mobile = :username and verification_code = :verification_no"); + $db->bind('verification_no', (string)$verification_no); + $row = $db->query("SELECT * FROM mobile_verifications WHERE mobile = :username AND verification_code = :verification_no"); if (count($row) > 0) { $status = 'true'; } else { - $status = 'false'; } echo $status; return ''; }); + $app->post('/register/send-verification', function(Request $request) { global $db; diff --git a/includes/func.class/logs/2018-03-09.txt b/includes/func.class/logs/2018-03-09.txt index ca64889..7c090a4 100644 --- a/includes/func.class/logs/2018-03-09.txt +++ b/includes/func.class/logs/2018-03-09.txt @@ -1,3 +1,39 @@ +Time : 16:23:44 +SQLSTATE[HY093]: Invalid parameter number: parameter was not defined +Raw SQL : SELECT * FROM mobile_verifications WHERE mobile = :username AND verification_code = :verification_no + +Time : 16:23:07 +SQLSTATE[HY093]: Invalid parameter number: parameter was not defined +Raw SQL : SELECT * FROM mobile_verifications WHERE mobile = :username AND verification_code = :verification_no + +Time : 16:22:18 +SQLSTATE[HY093]: Invalid parameter number: parameter was not defined +Raw SQL : SELECT * FROM mobile_verifications WHERE mobile = :username AND verification_code = :verification_no + +Time : 16:19:24 +SQLSTATE[HY093]: Invalid parameter number: parameter was not defined +Raw SQL : SELECT * FROM mobile_verifications WHERE mobile = :username AND verification_code = :verification_no + +Time : 16:18:12 +SQLSTATE[HY093]: Invalid parameter number: parameter was not defined +Raw SQL : SELECT * FROM mobile_verifications WHERE mobile = :username AND verification_code = :verification_no + +Time : 16:17:07 +SQLSTATE[HY093]: Invalid parameter number: parameter was not defined +Raw SQL : SELECT * FROM mobile_verifications WHERE mobile = :username AND verification_code = :verification_no + +Time : 16:15:44 +SQLSTATE[HY093]: Invalid parameter number: parameter was not defined +Raw SQL : SELECT * FROM mobile_verifications WHERE mobile = :username AND verification_code = :verification_no + +Time : 16:15:06 +SQLSTATE[HY093]: Invalid parameter number: parameter was not defined +Raw SQL : SELECT * FROM mobile_verifications WHERE mobile = :username AND verification_code = :verification_no + +Time : 16:13:59 +SQLSTATE[HY093]: Invalid parameter number: parameter was not defined +Raw SQL : SELECT * FROM mobile_verifications WHERE mobile = :username AND verification_code = :verification_no + Time : 14:08:33 SQLSTATE[42S02]: Base table or view not found: 1146 Table 'izyim.users' doesn't exist Raw SQL : SELECT * FROM users WHERE username= :username && password= :password && status = 1 diff --git a/includes/tpl/register.php b/includes/tpl/register.php index bcb74f8..63e030b 100755 --- a/includes/tpl/register.php +++ b/includes/tpl/register.php @@ -67,7 +67,7 @@
- +
Back