Category : verification

I was just wondering what I’m doing wrong here as my login page is not working. it goes straight to success even if the address and password I input is not in my DB. Is there something I’m doing wrong here? Any suggestions?? Here is my code: <?php echo "<!DOCTYPE html>"; echo "<HTML><BODY><table>"; require_once"/home/student/S0329939/data_files/database.php"; $email ..

Read more

Before submitting the form, I check if the token matches like this: if (empty($_SESSION[‘token’])) { $_SESSION[‘token’] = bin2hex(random_bytes(32)); }; if($request->token==$_SESSION[‘token’]){ ..some code.. }else{ echo "Token confirmation error!"; } HTML: <input class="mt-1 mb-1" type="hidden" name="token" value="<?php if($_SESSION[‘token’]){echo $_SESSION[‘token’];}else{echo ”;}; ?>"> And for some reason, else is always triggered, although in theory the check should occur when ..

Read more

I created a separate project and installed laravel breeze to have a working example of registration and verification functionality. I copied the verification functionality in my current project, controllers, routes and other configuration (guards). Clicking the verification link that i receive in the gives me a: AuthenticationException from Authenticate.php (line 67). I think that the ..

Read more