Esempio n. 1
0
 def validate(self, *args):
     if not os.path.isfile('auth.pyc'):
         error = ErrorWindow(self.authWin, "Auth file not present. Please see an administrator.")
     else:
         inpt = self.pwEntryVar.get()
         inpt = base64.b64encode(inpt)
         if inpt == getOPW():
             pGUI()
             self.close1()
         else:
             self.incorrectLabel.configure(text="Incorrect password")
             self.clrField()
Esempio n. 2
0
 def validate(self, *args):
     if not os.path.isfile('auth.pyc'):
         error = ErrorWindow(self, "Auth file not present. Please see an administrator.")
     else:
         inpt = self.pwEntryVar.get()
         inpt = base64.b64encode(inpt)
         if inpt == getOPW():
             logTC("Password authentication successful.")
             self.close1()
         elif inpt == "":
             self.incorrectLabel.configure(text="Password field blank")
             logTC("Authentication failed.")
         else:
             self.incorrectLabel.configure(text="Incorrect password")
             logTC("Authentication failed.")