コード例 #1
0
 def noUsername(self):  # must be minimum of five characters
     promptWindow("Error", "No username was entered")
コード例 #2
0
 def maxUsers(self):  #double check about this#
     promptWindow("Error", "Maximum of 10 users are already registered")
コード例 #3
0
 def shortPassword(self):  # must be minimum of five characters
     promptWindow("Error", "Password must be at least 5 characters")
コード例 #4
0
 def successfulRegistration(self):
     promptWindow("Success",
                  "Registration Successful. \n Redirecting to Login")
コード例 #5
0
 def repeatUser(self):  #user already exists
     promptWindow("Error", "An account with this username already exists")
コード例 #6
0
 def differentPassword(self):  #passwords don't match when registering
     promptWindow("Error", "Passwords do not match, please try again")
コード例 #7
0
 def wrongPassword(self): #password typed incorrectly
     promptWindow("Error", "Incorrect password, please try again")
コード例 #8
0
 def wrongUser(self): #user does not exist
     promptWindow("Error", "User does not exist, please try again or register as a new user")