Reputation: 21
I am trying to create an HTML form to be used for sign-in. I specifically need to be able to use the <input type="password" />
functionality.
<form>
<table>
<tr>
<td>Email: </td>
<td><input name="email" type="email" /></td>
</tr>
<tr>
<td>Password: </td>
<td><input name="password" type="password" /></td>
</tr>
<tr>
<td><input type="submit" value="log in" /></td>
</tr>
</table>
</form>
My issue is that I'm not sure what the action
should be or if that is even how I am supposed to capture the information in the form.
How do I capture the form data so that I can send it to my API and verify the log in?
Upvotes: 1
Views: 316
Reputation: 7148
A couple of comments... you cannot use HTML markup. You must use widgets in a Card. I'm not aware of a widget that hides its input.
Also, the person using your add-on has already logged into Gmail and you can get their email address. So you could simply send their email address to your API, knowing that they have authenticated already. (Make sure your API only trusts the Gmail server for this.)
Upvotes: 1