def registerControl(self, name, phone, email, username, password): ac = AuthController() message = ac.register(name, phone, email, username, password, 'student') if message: messagebox.showinfo('Alert', message)
def registerControl(self, name, phone, email, username, password): ac = AuthController() status = ac.register(name, phone, email, username, password) if status['code']: messagebox.showinfo('Success', status['message']) else: messagebox.showerror('Error', status['message'])
def registerControl(self, name, phone, email, username, password): ac = AuthController() message = ac.register(name, phone, email, username, password) messagebox.showinfo('Message', message)