roundcubemail-plugins-kolab/plugins/loginfail/loginfail.php

24 lines
478 B
PHP
Raw Normal View History

<?php
class loginfail extends rcube_plugin
{
public $task = 'login';
2024-01-24 11:24:41 +01:00
public function init()
{
2024-01-24 11:24:41 +01:00
$this->add_hook('login_failed', [$this, 'login_failed']);
}
public function login_failed($args)
{
2024-01-25 13:47:41 +01:00
$rcmail = rcmail::get_instance();
$filename = $this->home . '/loginfail.html';
if (file_exists($filename)) {
$html = file_get_contents($filename);
$rcmail->output->add_footer($html);
}
}
}