Example #1
0
    def user(self):
        print('Choose option: \n 1.Register \t 2.Login')
        choice = input('Enter your choice :')

        auth = Auth()
        if choice == '1':
            auth.register()
        elif choice == '2':
            auth.login()
        else:
            print('Invalid choice')
            self.user()
Example #2
0
 def post(self):
     return Auth.login()