Beispiel #1
0
    def api_unRegister(username, passwd):
        """request to unregister from the system,

        @type username: str
        @param username: user name
        @type passwd: str
        @param passwd: password
        """
        req = [CMDAccount.userunregister, {"username": username,
                                           "passwd": passwd}]
        return json.dupms(req)
Beispiel #2
0
    def api_register(username, passwd):
        """register as a valid user,
        More info need to be extended.

        @type username: str
        @param username: user name
        @type passwd: str
        @param passwd: password
        """
        # TODO. Email verifying support

        req = [CMDAccount.userregister, {"username": username,
                                         "passwd": passwd}]
        return json.dupms(req)