We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7d735f commit 3064f83Copy full SHA for 3064f83
interface/web/mail/mail_user_edit.php
@@ -207,7 +207,7 @@ function onSubmit() {
207
208
$sys_config = $app->getconf->get_global_config('mail');
209
if($sys_config["enable_custom_login"] == "y") {
210
- if(!isset($_POST["login"])) $this->dataRecord["login"] = $this->dataRecord["email"];
+ if(!isset($_POST["login"]) || $_POST["login"] == '') $this->dataRecord["login"] = $this->dataRecord["email"];
211
elseif(strpos($_POST["login"], '@') !== false && $_POST["login"] != $this->dataRecord["email"]) $app->tform->errorMessage .= $app->tform->lng("error_login_email_txt")."<br>";
212
} else {
213
$this->dataRecord["login"] = isset($this->dataRecord["email"]) ? $this->dataRecord["email"] : '';
0 commit comments