Revolved : Reseller problem account

  • i can login with the admin-account, but if i change into a reseller that has created a domain or assigned this message appears:



    Latest Stable-Release: 1.1.5
    Linux System : Debian 7

    Notelseit.com

  • Hello ;


    Teamviewer?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • To resume, to find those orphan entries (user without domain entry) I've run the following SQL query:


    SQL
    1. SELECT admin_id, domain_name FROM admin LEFT JOIN domain ON(domain_admin_id = admin_id) WHERE created_by = <reseller_id>


    Where <reselller_id> must be replaced with the reseller unique identifier.


    In the result, any entry with domain_name set as NULL is an orphan entry. Therefore, you can remove the user(s) with one of the following queries:


    One user only

    SQL
    1. DELETE FROM admin WHERE admin_id = <admin_id>


    where <admin_id> must be replaced by your admin ID


    Many users

    SQL
    1. DELETE FROM admin WHERE admin_id IN(<admin_id_list>)


    where <admin_id_list> must be replaced by your admin ID list, each comma separated.


    Once it's done, you must also check in other tables and remove any row which reference the ID of deleted admins.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206