Skip to content

Commit

Permalink
json call for list addresses now need the password as GET/POST parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-at committed Dec 2, 2023
1 parent 0858fcb commit f8578d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/inc/OpenTrashmailBackend.class.php
Expand Up @@ -78,7 +78,7 @@ public function run(){
header("Content-Type: application/json; charset=UTF8");
if($this->url[1]=='listaccounts')
{
if($this->settings['SHOW_ACCOUNT_LIST'])
if($this->settings['SHOW_ACCOUNT_LIST'] && (($this->settings['ADMIN_PASSWORD'] != "" && $_REQUEST['password']==$this->settings['ADMIN_PASSWORD'])|| !$this->settings['ADMIN_PASSWORD']))
return json_encode(listEmailAdresses());
else exit(json_encode(['error'=>'403 Forbidden']));
}
Expand Down

0 comments on commit f8578d6

Please sign in to comment.