14 Commits

Author SHA1 Message Date
c478cfc7af Use sorcery for logins
This gives us more flexibility and allows us to use password authentication
later. Also we don't need to build the login functionality ourself.
2020-04-13 14:59:07 +02:00
73c184a4a0 Use secure token to create attachment links
The link is public but protected by a secure token.

This extends the activesupport Attachment model to automatically
generate a token
2020-04-12 23:47:56 +02:00
bffed7a606 Add sequential_id to calculate auto incrementing submission id 2020-04-12 23:18:55 +02:00
e46e68cc22 Add demo page
The demo page shows a form and an embedded google sheet side by side.
The form needs be be configured with a DEMO_FORM_ID environment variable.
2020-04-12 01:01:28 +02:00
c5b75d806e Add submission count and date to form card 2020-04-10 22:31:18 +02:00
9c9ed88fa0 That should not be there 2020-04-09 13:39:04 +02:00
94966a9933 Handle authentication errors when appending data
This catches exceptions that can happen when an authentication is expired
or removed by the user on google's side.
2020-04-09 11:51:54 +02:00
10d80c6548 Support file uploads
This allows submissions to store file uploads
2020-04-09 11:02:07 +02:00
73ccddee94 Encrypt access_token and refresh_token 2020-04-09 00:49:20 +02:00
4b0a054596 Update authentication on login
I am not sure about this. but when we get a new access token or refresh
token (which I think we do not) we update those. probably does not hurt?
2020-04-08 16:15:41 +02:00
c964c15196 Form value handling for Arrays and Hashes
This processes Array and Hash values and converts those to strings that
can be appended to the spreadsheet
2020-04-08 00:52:00 +02:00
d55317fe43 Add link to google spreadsheet 2020-04-06 11:21:56 +02:00
409038ecba Add experimental support for dynamic values
This allows a submission to get a dynamic value like for example the current time
2020-04-06 00:26:59 +02:00
917051c7ea Hello tinyforms 2020-04-05 23:35:53 +02:00