Commit b157ff19 authored by Antoine Millet's avatar Antoine Millet
Browse files

Added a cli-handler to copy an account.

parent 62465261
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -221,6 +221,19 @@ class CliHandler(OnlineCCHandler):
        else:
            raise BadRoleError('%r is not a legal role.' % role)

    @listed
    def copyaccount(self, conn, copy_login, login, password=None):
        '''
        Create a new account with specified login.

        :param copy_login: the login of the account to copy
        :param login: the login of the new account
        :param password: the password of the new account (default None)
        '''

        self._check(conn, 'addaccount')
        self._server.conf.copy_account(copy_login, login, password)

    @listed
    def addtag(self, conn, query, tag_name, tag_value):
        '''