mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
Add logging for password resets
This commit is contained in:
@ -249,6 +249,8 @@ log_sync=Changed unix user synchronization
|
||||
log_sql=Changed user and group database
|
||||
log_twofactor=Enrolled user $1 with two-factor provider $2
|
||||
log_onefactor=Dis-enrolled user $1 for two-factor authentication
|
||||
log_forgot_send=Sent password rest email for $1 to $2
|
||||
log_forgot_reset=Reset password for $1 with email $2
|
||||
|
||||
gedit_ecannot=You are not allowed to edit groups
|
||||
gedit_title=Edit Webmin Group
|
||||
|
@ -62,6 +62,10 @@ elsif ($action eq 'switch') {
|
||||
elsif ($action eq 'twofactor') {
|
||||
return &text('log_twofactor', $object, $p->{'provider'}, $p->{'id'});
|
||||
}
|
||||
elsif ($action eq 'forgot') {
|
||||
return &text('log_forgot_'.$type, &html_escape($p->{'user'}),
|
||||
&html_escape($p->{'email'}));
|
||||
}
|
||||
else {
|
||||
return $text{'log_'.$action};
|
||||
}
|
||||
|
@ -118,6 +118,10 @@ if (defined($in{'newpass'})) {
|
||||
}
|
||||
print &text('forgot_retry', '/'),"<p>\n";
|
||||
|
||||
&webmin_log("forgot", "reset", undef,
|
||||
{ 'user' => $wuser->{'name'},
|
||||
'email' => $link{'email'} }, "acl");
|
||||
|
||||
&unlink_file("$main::forgot_password_link_dir/$in{'id'}");
|
||||
}
|
||||
else {
|
||||
|
@ -101,6 +101,9 @@ print &text('forgot_sent',
|
||||
"<tt>".&html_escape($wuser->{'name'})."</tt>"),"<p>\n";
|
||||
print "</center>\n";
|
||||
|
||||
&webmin_log("forgot", "send", undef,
|
||||
{ 'user' => $wuser->{'name'},
|
||||
'email' => $email }, "acl");
|
||||
&ui_print_footer();
|
||||
|
||||
# generate_random_id()
|
||||
|
Reference in New Issue
Block a user