From 00096d3791d979984cceb849e1a18b774e30ba66 Mon Sep 17 00:00:00 2001 From: Thies Mueller Date: Sat, 9 Jan 2021 23:22:17 +0100 Subject: [PATCH] maybe thats how to escape the activation of unknown users --- activation.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/activation.php b/activation.php index c650575..d310930 100644 --- a/activation.php +++ b/activation.php @@ -38,7 +38,10 @@ if(isset($_GET['send']) ) { $user = $statement->fetch(); if($user === false) { - $error = 'no user found'; + $error = 'no user found'; + } + if($user['username'] !== $_POST['username']){ + $error = 'no user found/invalid user'; } if($user['activated'] == "1"){ $error = 'user already activated!';