[Dovecot, Web] Fix remaining issues of app password enhancements from #4296

This commit is contained in:
andryyy
2021-10-30 14:34:33 +02:00
parent 644b1f85d1
commit f0aae22f77
3 changed files with 7 additions and 3 deletions

View File

@@ -944,7 +944,7 @@ function check_login($user, $pass, $app_passwd_data = false) {
':service' => $service,
':app_id' => $row['app_passwd_id'],
':username' => $user,
':remote_addr' => $_SERVER['REMOTE_ADDR']
':remote_addr' => ($_SERVER['HTTP_X_REAL_IP'] ?? $_SERVER['REMOTE_ADDR'])
));
}
return "user";