code: def check_user_by_name(user_name, u_pass):
          '''
          Checking the password by user's name.
          '''
          the_query = TabMember.select().where(TabMember.user_name == user_name)
          if the_query.count() == 0:
              return -1
  
          the_user = the_query.get()
          if the_user.user_pass == tools.md5(u_pass):
              return 1
          return f check_user_by_name(user_name, u_pass):
          '''
          Checking the password by user's name.
          '''
          the_query = TabMember.select().where(TabMember.user_name == user_name)
          if the_query.count() == 0:
              return -1
  
          the_user = the_query.get()
          if the_user.user_pass == tools.md5(u_pass):
              return 1
          return 0
docs: Checking the password by user's name.