Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3eb6d790 authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

Forbid creation of noreply user and others

parent 11d4ec92
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ if (has_invalid_password_characters($pw)) {
    sendAPIResponse(400, createAPIResponse("password", $error_string));
}

if (in_array($mbox, array('abuse', 'hostmaster', 'postmaster', 'webmaster', 'postmaster', 'root', 'sendmail', 'postfix', 'contact', 'info', 'sales', 'marketing', 'news', 'newsletter', 'eelo', 'job', 'jobs', 'career', 'admin', 'legal', 'apache', 'postfix', 'mysql', 'support'))) {
if (in_array($mbox, array('abuse', 'hostmaster', 'postmaster', 'webmaster', 'postmaster', 'root', 'sendmail', 'postfix', 'contact', 'info', 'sales', 'marketing', 'news', 'newsletter', 'eelo', 'job', 'jobs', 'career', 'admin', 'legal', 'apache', 'postfix', 'mysql', 'support', 'noreply', 'murena', 'efoundation'))) {
    $error_string = $strings["error_account_forbidden"];
    $error_string = str_replace("___username___", $mbox, $error_string);
    sendAPIResponse(400, createAPIResponse("username", $error_string));