mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/ARCHIVED-IZYIM.git
synced 2026-08-19 04:14:01 +00:00
updated verification visible
updated success registration message
This commit is contained in:
@@ -53,7 +53,7 @@ $(document).ready(function () {
|
||||
},
|
||||
complete: function (e, xhr, settings) {
|
||||
if (e.status === 200) {
|
||||
$("#status").html("<span style='color: #00CC96;'>Success:</span> Redirecting to dashboard ");
|
||||
$("#status").html("<span style='color: #00CC96;'>Success:</span> Redirecting to dashboard. ");
|
||||
setTimeout(function () {
|
||||
window.location.href = "/dashboard"; // The URL that will be redirected too.
|
||||
}, 1000);
|
||||
|
||||
@@ -51,7 +51,7 @@ var Script = function () {
|
||||
},
|
||||
complete: function(e, xhr, settings){
|
||||
if(e.status == 200){
|
||||
$("#status").html("<span style='color: #00CC96;'>Success:</span> Redirecting to dashboard ");
|
||||
$("#status").html("<span style='color: #00CC96;'>Success:</span> Please login again. ");
|
||||
setTimeout(function () {
|
||||
window.location.href = "/dashboard"; // The URL that will be redirected too.
|
||||
}, 3000);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<input class="form-control form-control-solid placeholder-no-fix form-group" type="password" placeholder="Confirm Password" name="confirm_password" id="confirm_password" /> </div>
|
||||
<div class="form-group">
|
||||
<label class="control-label visible-ie8 visible-ie9">Verification No.</label>
|
||||
<input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="Verification No" id="verification_no" name="verification_no" />
|
||||
<input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="Verification No" id="verification_no" name="verification_no" />
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<a href="/login" class="btn green btn-outline">Back</a>
|
||||
|
||||
Reference in New Issue
Block a user