Poodletooth-iLand/otp/login/LoginTTUAccount.py

39 lines
1 KiB
Python
Raw Normal View History

2015-03-03 22:10:12 +00:00
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