]> git.mjollnir.org Git - moodle.git/commitdiff
print an error if data isn't there
authormoodler <moodler>
Tue, 9 Sep 2003 12:10:27 +0000 (12:10 +0000)
committermoodler <moodler>
Tue, 9 Sep 2003 12:10:27 +0000 (12:10 +0000)
login/confirm.php

index ab5a3806a8af634cec203c6703f44ee53eb0166a..cbc3e391bc0c4a6490034babce8bd889993eac90 100644 (file)
@@ -3,7 +3,7 @@
     require_once("../config.php");
     require_once("../auth/$CFG->auth/lib.php");
 
-    if ( isset($p) and isset($s) ) {     #  p = user.secret   s = user.username
+    if (isset($_GET['p']) and isset($_GET['s']) ) {     #  p = user.secret   s = user.username
 
         $user = get_user_info_from_db("username", "$s");
 
@@ -60,6 +60,8 @@
                 error("Invalid confirmation data");
             }
         }
+    } else {
+        error(get_string("errorwhenconfirming"));
     }
 
     redirect("$CFG->wwwroot/");