diff --git a/inside/functions.php b/inside/functions.php index 2f9919c..1f31ac0 100644 --- a/inside/functions.php +++ b/inside/functions.php @@ -634,13 +634,36 @@ function checkPassword($userid, $verificationCode) { } function displayCode($code) { - print "
" . getCode($code) . "
"; + print "";
+ print "Kortnummer: $code
";
+ print "Kode: " . getCode($code) . "
";
+ if (isValidCode($code)) {
+ print "Koden har ikke vært brukt";
+ } else {
+ print "Koden har allerede vært brukt";
+ }
+ print "