예제 #1
0
 def password_check_callback(self):
     resp, msg = _functions.password_check(self.root_password_1.value(),
                                           self.root_password_2.value())
     if (len(self.root_password_1.value()) < 8) and \
        (len(self.root_password_2.value()) < 8):
         self.root_password_1.set("")
         self.root_password_2.set("")
         msg = "Password must be at least 8 characters\n\n\n\n\n"
     elif (" " in self.root_password_1.value()) or \
          (" " in self.root_password_2.value()):
         self.root_password_1.set("")
         self.root_password_2.set("")
         msg = "Password may not contain spaces\n\n\n\n\n"
     self.pw_msg.setText(msg)
     return
예제 #2
0
 def password_check_callback(self):
     resp, msg = _functions.password_check(self.root_password_1.value(),
                                           self.root_password_2.value())
     if (len(self.root_password_1.value()) < 8) and \
        (len(self.root_password_2.value()) < 8):
         self.root_password_1.set("")
         self.root_password_2.set("")
         msg = "Password must be at least 8 characters\n\n\n\n\n"
     elif (" " in self.root_password_1.value()) or \
          (" " in self.root_password_2.value()):
         self.root_password_1.set("")
         self.root_password_2.set("")
         msg = "Password may not contain spaces\n\n\n\n\n"
     self.pw_msg.setText(msg)
     return
예제 #3
0
파일: rhevm.py 프로젝트: vikas-lamba/vdsm
 def password_check_callback(self):
     resp, msg = password_check(self.root_password_1.value(),
                                self.root_password_2.value())
     self.pw_msg.setText(msg)
     return
예제 #4
0
파일: engine.py 프로젝트: ekohl/vdsm
 def password_check_callback(self):
     resp, msg = password_check(self.root_password_1.value(), self.root_password_2.value())
     self.pw_msg.setText(msg)
     return