def createLoginForm(stub):
    username = input('Digite seu login: ')
    password = input('Digite sua senha: ')
    _redis = redis.Redis(host='localhost', port='6379', password='davi')
    _redis.set('username', username)
    value = _redis.get('username')
    print('variavel do redis:', value)
    return stub.Login(helloworld_pb2.LoginRequest(username=username, password=password))
def createLoginForm(stub):
    username = input('Digite seu login: ')
    password = input('Digite sua senha: ')
    _redis = redis.Redis(host='localhost', port='6379', password='davi')
    _redis.set('username', username)
    value = _redis.get('username')
    print('variavel do redis:', value)
    return stub.Login(helloworld_pb2.LoginRequest(username=username, password=password))