Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

ISPConfig – Client Usernamen immer klein

Der folgende Code ist ein einfacher Fix für den Feature Request.

Um alle Usernamen Immer kleingeschrieben zu haben, einfach das File /usr/local/ispconfig/interface/lib/plugins/clients_plugin.inc.php mit dem folgenden Inhalt erstellen:

plugin->registerEvent('client:client:on_before_insert', 'clients_plugin', 'client_edit');
                $app->plugin->registerEvent('client:client:on_before_update', 'clients_plugin', 'client_edit');
        }

        function client_edit($event_name, $page_form) {
                $page_form->dataRecord['username'] = strtolower($page_form->dataRecord['username']);
        }

}
?>

Die Rechte entsprechend setzen:
chown ispconfig.ispconfig /usr/local/ispconfig/interface/lib/plugins/clients_plugin.inc.php
chmod 750 /usr/local/ispconfig/interface/lib/plugins/clients_plugin.inc.php

Damit das Plugin aktiviert wird, muss man sich einmal von ISPConfig ab- und dann wieder anmelden.

No tags for this post.


This post first appeared on Florian @it – Mein Persönliches IT-Blog, please read the originial post: here

Share the post

ISPConfig – Client Usernamen immer klein

×

Subscribe to Florian @it – Mein Persönliches It-blog

Get updates delivered right to your inbox!

Thank you for your subscription

×