Skip to content

Commit

Permalink
Send password email still when random password was generated https://…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Aug 20, 2016
1 parent 73ebc25 commit 31ea2f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions email.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ elsif ($custommsg) {
}
elsif ($user) {
# Use default Usermin message
$user->{'plainpass'} ||
$randpass || $user->{'plainpass'} ||
&error_and_exit(&text('email_euserpass', $user->{'user'}));
my $defemail = &virtual_server::remove_userdom($user->{'user'}, $userd).
"\@".$userd->{'dom'};
Expand All @@ -284,7 +284,7 @@ elsif ($user) {
}
elsif ($dom) {
# Use default Virtualmin message
$dom->{'pass'} ||
$randpass || $dom->{'pass'} ||
&error_and_exit(&text('email_edompass', $dom->{'user'}));
$msg = &text('email_msg', $dom->{'dom'},
$dom->{'user'},
Expand All @@ -296,6 +296,8 @@ elsif ($dom) {
}
elsif ($owner) {
# Use default Cloudmin message
$randpass || $owner->{'acl'}->{'plainpass'} ||
&error_and_exit(&text('email_eownerpass', $dom->{'user'}));
$msg = &text('email_msg2', $owner->{'name'},
$randpass || $owner->{'acl'}->{'plainpass'},
$url,
Expand Down
1 change: 1 addition & 0 deletions lang/en
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ email_done3=The login and password for your Usermin account $2 have been sent to
email_failed=Password recovery failed
email_eproduct=Neither Virtualmin or Cloudmin is installed, so no accounts for password recovery are available
email_edompass=Your virtual server password for login $1 cannot be recovered as it has not been stored by Virtualmin. Please contact your system administrator to reset the password.
email_eownerpass=Your system owner password for login $1 cannot be recovered as it has not been stored by Cloudmin. Please contact your system administrator to reset the password.
email_euserpass=Your Usermin password for login $1 cannot be recovered as it has not been stored by Virtualmin. Please contact your system administrator to reset the password.
email_return=Return to the <a href='$1'>login form</a> to use your new password.
email_eid=Invalid message ID!
Expand Down

0 comments on commit 31ea2f8

Please sign in to comment.