MDL-32052 simplify subclassing of auth_email

This commit is contained in:
Petr Skoda
2012-03-17 10:52:09 +01:00
parent a2b30aa852
commit 351d55b372
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ class auth_plugin_email extends auth_plugin_base {
if ($user->confirmed) {
return AUTH_CONFIRM_ALREADY;
} else if ($user->auth != 'email') {
} else if ($user->auth != $this->authtype) {
return AUTH_CONFIRM_ERROR;
} else if ($user->secret == $confirmsecret) { // They have provided the secret key to get in
+1 -1
View File
@@ -25,7 +25,7 @@
</tr>
<?php
print_auth_lock_options('email', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
print_auth_lock_options($this->authtype, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
?>
</table>