这个提交包含在:
HB9HIL 2024-01-01 02:44:03 +01:00
父节点 326e1b040c
当前提交 c001b66364
共有 3 个文件被更改,包括 5 次插入2 次删除

查看文件

@ -805,6 +805,7 @@ class User extends CI_Controller {
} }
} }
// Send an E-Mail to the user. Function is similar to forgot_password()
function admin_send_passwort_reset() { function admin_send_passwort_reset() {
$this->load->model('user_model'); $this->load->model('user_model');

查看文件

@ -2,6 +2,8 @@
defined('BASEPATH') or exit('No direct script access allowed'); defined('BASEPATH') or exit('No direct script access allowed');
// Adding a column to users table for the timestamp of the last login
class Migration_add_last_login extends CI_Migration class Migration_add_last_login extends CI_Migration
{ {

查看文件

@ -47,7 +47,7 @@
<th scope="col"><?php echo lang('gen_hamradio_callsign'); ?></th> <th scope="col"><?php echo lang('gen_hamradio_callsign'); ?></th>
<th scope="col"><?php echo lang('admin_email'); ?></th> <th scope="col"><?php echo lang('admin_email'); ?></th>
<th scope="col"><?php echo lang('admin_type'); ?></th> <th scope="col"><?php echo lang('admin_type'); ?></th>
<th scope="col">Last login</th> <th scope="col"><?php echo lang('admin_last_login'); ?></th>
<th style="text-align: center; vertical-align: middle;" scope="col"><?php echo lang('admin_edit'); ?></th> <th style="text-align: center; vertical-align: middle;" scope="col"><?php echo lang('admin_edit'); ?></th>
<th style="text-align: center; vertical-align: middle;" scope="col"><?php echo lang('admin_password_reset'); ?></th> <th style="text-align: center; vertical-align: middle;" scope="col"><?php echo lang('admin_password_reset'); ?></th>
<th style="text-align: center; vertical-align: middle;" scope="col"><?php echo lang('admin_delete'); ?></th> <th style="text-align: center; vertical-align: middle;" scope="col"><?php echo lang('admin_delete'); ?></th>
@ -66,7 +66,7 @@
<td><?php $l = $this->config->item('auth_level'); <td><?php $l = $this->config->item('auth_level');
echo $l[$row->user_type]; ?></td> echo $l[$row->user_type]; ?></td>
<td><?php <td><?php
if ($row->last_login_date != null) { if ($row->last_login_date != null) { // if the user never logged in before the value is null. We can show "never" then.
echo $row->last_login_date; echo $row->last_login_date;
} else { } else {
echo lang('general_word_never'); echo lang('general_word_never');