.BANCHO. Add support for locked accounts

This commit is contained in:
Nyo
2016-09-13 11:39:39 +02:00
parent 48925c58c0
commit 14348a68bb
4 changed files with 33 additions and 5 deletions

View File

@@ -83,3 +83,6 @@ class haxException(Exception):
class forceUpdateException(Exception):
pass
class loginLockedException(Exception):
pass

View File

@@ -16,7 +16,12 @@ def forceUpdate():
def loginBanned():
packets = packetHelper.buildPacket(packetIDs.server_userID, [[-1, dataTypes.SINT32]])
packets += notification("You are banned. You can ask to get unbanned after 1 month since your ban by contacting support@ripple.moe")
packets += notification("You are banned. You can appeal after one month since your ban by sending an email to support@ripple.moe> from the email address you've used to sign up.")
return packets
def loginLocked():
packets = packetHelper.buildPacket(packetIDs.server_userID, [[-1, dataTypes.SINT32]])
packets += notification("Your account is locked. You can't log in, but your profile and scores are still visible from the website. If you want to unlock your account, send an email to support@ripple.moe from the email address you've used to sign up.")
return packets
def loginError():