HTML form for accessing a google drive folder

Asked

Viewed 428 times

1

I have a folder of google drive shared but not available in search, accessible only with the link. I wanted to create a form (preferably from a google tool) available to a small group of friends in which the user would log in, password and if possible, a captcha code (or similar mechanism).

After submitting the form data, it would be checked if there is a user/password pair in a simple code (detailed later). If it exists, the user is directed to the google drive folder, if not back to the form with an error message.

The code would be simple, something like that (example in PHP):

// supor que as variáveis $usuario e $senha tenham capturados do dados do form previamente
// a variável $acesso, se true, concede o acesso a rede, se falso faz retornar ao form

$acesso=false;
if ( $usuario == 'jose' && $senha = 'xxx' ) { $acesso=true; }
if ( $usuario == 'maria' && $senha = 'yyy' ) { $acesso=true; }

The preference for implementing this solution would be in this order:

  1. Google Forms or other google drive add-on;
  2. Other google tool (not drive);
  3. Non google tool that successfully directs to the folder link
  • I did some research and I have the impression that what I want can be implanted with the Google App Script. The question is whether there is a template ready and whether it is easy to reconfigure it to what I want.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.