Skip to content

Commit

Permalink
fix(ISSUE-45): blocks confirmation for unauthorized users
Browse files Browse the repository at this point in the history
  • Loading branch information
hrimhari committed Oct 1, 2021
1 parent 39ffe29 commit 919e035
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ public function user_confirm($username, $confirmsecret) {
$user = get_complete_user_data('username', $username);

if (!empty($user)) {
require_login();
require_capability('moodle/user:update', context_system::instance());

if ($user->confirmed) {
return AUTH_CONFIRM_ALREADY;

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

defined('MOODLE_INTERNAL') || die;

$plugin->version = 2030061001; // The current plugin version (Date: YY300610XX).
$plugin->version = 2030110100; // The current plugin version (Date: YY301101XX).
$plugin->requires = 2017111300; // Requires this Moodle version.
$plugin->component = 'auth_emailadmin'; // Full name of the plugin (used for diagnostics).
$plugin->maturity = MATURITY_STABLE;
Expand Down

0 comments on commit 919e035

Please sign in to comment.