Poodletooth-iLand/otp/login/LoginTTUAccount.py
2015-03-03 17:10:12 -05:00

38 lines
1 KiB
Python

from pandac.PandaModules import *
from direct.distributed.MsgTypes import *
from direct.directnotify import DirectNotifyGlobal
import LoginBase
from direct.distributed.PyDatagram import PyDatagram
class LoginTTUAccount(LoginBase.LoginBase):
notify = DirectNotifyGlobal.directNotify.newCategory('LoginTTUAccount')
def __init__(self, cr):
LoginBase.LoginBase.__init__(self, cr)
def supportsRelogin(self):
if __debug__:
return 1
return 0
def authorize(self, username, password):
return 0 # No error!
def sendLoginMsg(self):
cr = self.cr
# TODO
def resendPlayToken(self):
self.notify.error('Cannot resend playtoken!')
def getErrorCode(self):
return 0
def needToSetParentPassword(self):
return 0
def authenticateParentPassword(self, loginName, password, parentPassword):
self.notify.error('authenticateParentPassword called')
def authenticateDelete(self, loginName, password):
return 1