Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-26680: Reset my moodle page - add sesskey check.

  • Loading branch information...
commit ff77d601d5badc44e159b50fb0d8db14d8fbe7fc 1 parent ce3b8b0
@damyon damyon authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  my/index.php
View
1  my/index.php
@@ -101,6 +101,7 @@
if ($PAGE->user_allowed_editing()) {
if ($reset !== null) {
if (!is_null($userid)) {
+ require_sesskey();
if(!$currentpage = my_reset_page($userid, MY_PAGE_PRIVATE)){
print_error('reseterror', 'my');
}
Please sign in to comment.
Something went wrong with that request. Please try again.