mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 08:47:54 +00:00
38 lines
1 KiB
Python
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
|