mirror of
https://github.com/PawelSuwinski/moodle-auth_emailotp.git
synced 2026-05-16 21:41:27 +02:00
phpdoc corrections
This commit is contained in:
@@ -37,34 +37,22 @@ class otp_generated extends \core\event\base {
|
|||||||
|
|
||||||
protected const CRUD = 'c';
|
protected const CRUD = 'c';
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
protected function init() {
|
protected function init() {
|
||||||
$this->data['crud'] = static::CRUD;
|
$this->data['crud'] = static::CRUD;
|
||||||
$this->data['edulevel'] = self::LEVEL_OTHER;
|
$this->data['edulevel'] = self::LEVEL_OTHER;
|
||||||
$this->context = \context_system::instance();
|
$this->context = \context_system::instance();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public static function get_name() {
|
public static function get_name() {
|
||||||
return get_string('eventotp'.substr(static::class, strrpos(static::class, '_') + 1),
|
return get_string('eventotp'.substr(static::class, strrpos(static::class, '_') + 1),
|
||||||
'auth_emailotp');
|
'auth_emailotp');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function get_description() {
|
public function get_description() {
|
||||||
return sprintf('Password %s for \'%s\'', $this->action,
|
return sprintf('Password %s for \'%s\'', $this->action,
|
||||||
$this->other['email']);
|
$this->other['email']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
protected function get_legacy_logdata() {
|
protected function get_legacy_logdata() {
|
||||||
return array(SITEID, 'auth_emailotp', $this->action, '',
|
return array(SITEID, 'auth_emailotp', $this->action, '',
|
||||||
$this->other['email']);
|
$this->other['email']);
|
||||||
|
|||||||
Reference in New Issue
Block a user