code: def check_user(user_id, u_pass):
          '''
          Checking the password by user's ID.
          '''
          user_count = TabMember.select().where(TabMember.uid == user_id).count()
          if user_count == 0:
              return -1
          the_user = TabMember.get(uid=user_id)
          if the_user.user_pass == tools.md5(u_pass):
              return 1
          return f check_user(user_id, u_pass):
          '''
          Checking the password by user's ID.
          '''
          user_count = TabMember.select().where(TabMember.uid == user_id).count()
          if user_count == 0:
              return -1
          the_user = TabMember.get(uid=user_id)
          if the_user.user_pass == tools.md5(u_pass):
              return 1
          return 0
docs: Checking the password by user's ID.