Fix email sending and login button
This commit is contained in:
parent
9e2b5fa9f1
commit
63fcbc8d68
|
@ -232,7 +232,7 @@ router.post("/keys/email", async (req, res) => {
|
|||
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
|
||||
const msg = {
|
||||
to: email,
|
||||
from: "nobody@social.com",
|
||||
from: "Social <rgrchvs@gmail.com>",
|
||||
subject: `Login button for ${req.context.profile.name}`,
|
||||
html,
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.3em; font-size: 16px; padding: 30px 0">
|
||||
<h1 style="font-weight: bold; line-height: 1.3em; margin: 0; padding: 10px 0 0 0; font-weight: 200;">Login button</h1>
|
||||
<p>Welcome to Social, please use the button below to login to your account:</p>
|
||||
<form action="<%= host %>/login" style="padding: 20px 0">
|
||||
<form action="<%= host %>/login" method="POST" style="padding: 20px 0">
|
||||
<input type="hidden" name="ssb_key" value="<%= ssb_key %>" />
|
||||
<input type="submit" value="Login to Social" style="background: #08d; color: #fff; border-radius: 3px; padding: 8px 10px; border: none; cursor: pointer; text-decoration: none; display: inline-block; padding: 16px 20px; font-size: 18px;">
|
||||
</form>
|
||||
|
|
Loading…
Reference in New Issue