Permalink
Browse files

print an error if data isn't there

  • Loading branch information...
1 parent 6f3da56 commit 970099c973c9ef6929eda59a5a627c586c8e38e7 moodler committed Sep 9, 2003
Showing with 3 additions and 1 deletion.
  1. +3 −1 login/confirm.php
View
@@ -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/");

0 comments on commit 970099c

Please sign in to comment.