Permalink
Browse files

Added email to notify people using the git client

  • Loading branch information...
davidmerfield committed Jan 10, 2019
1 parent 8a5d96b commit 0645595481ac24b4579217daea6f77f4c463b9e4
@@ -0,0 +1,12 @@
Git client re-authentication required

I'm writing because one of your blogs on [Blot](https://blot.im) uses the Git client. I recently changed the way git authenticates with Blot. Instead of your blog's username, the git client now uses your account's email address. This resolves a bug for users who manage multiple blogs with the git client.

When you next push, your existing credentials will fail. Please use these credentials instead:

Username: {{email}}
Password: [View your token](https://blot.im/log-in?then=/settings/client/git)

If you have any questions, please reply directly to this email.

Sincerely, David
@@ -0,0 +1,21 @@
var send = require("../send");
var each = require("../../each/blog");
var users = [];

// Use this function to filter blogs based on
// whether or not we should email their owner.
function filter(user, blog, next) {

// Add the user to the list of users to email
// if the blog or user meets a certain condition
if (blog.client === 'git') users.push(user);

next();
}

each(filter, function() {
send(__dirname + "/email.txt", users, function(err) {
if (err) throw err;
process.exit();
});
});

0 comments on commit 0645595

Please sign in to comment.