diff --git a/lang/index.js b/lang/index.js
index 2419dc35..cb11ce72 100644
--- a/lang/index.js
+++ b/lang/index.js
@@ -1,6 +1,6 @@
module.exports = {
en: {
- intro: 'Welcome to soundtrack.io!
Thanks for joining. You\'ll notice we didn\'t collect your email address, so make sure to remember your password – we can\'t recover it for you. Maybe add one of our supported services so you can log in without it?
Some First Steps:
- Connect Spotify » This will enable your ability to import playlists from Spotify.
- Connect LastFM » This enables your ability to Scrobble to LastFM and track your listening trends!
- Set Gravatar » Click "edit profile" and add your email address, and we can add an image for you.
'
+ intro: 'Welcome to soundtrack.io!
Thanks for joining. You\'ll notice we didn\'t collect your email address, so make sure to remember your password – we can\'t recover it for you. Maybe add one of our supported services so you can log in without it?
Some First Steps:
- Connect Spotify » This will enable your ability to import playlists from Spotify.
- Connect LastFM » This enables your ability to Scrobble to LastFM and track your listening trends!
- Set Gravatar » Click "edit profile" and add your email address, and we can add an image for you.
'
}
}
diff --git a/soundtrack.js b/soundtrack.js
index 2b7d102d..32b5652d 100644
--- a/soundtrack.js
+++ b/soundtrack.js
@@ -755,7 +755,7 @@ app.post('/:usernameSlug/sets', requireLogin, playlists.create );
app.post('/:usernameSlug/sets/:playlistID', requireLogin, playlists.addTrack );
app.post('/:usernameSlug/sets/:playlistID/edit', requireLogin, playlists.edit ); // TODO: fix URL
-app.get('/register', redirectToMainSite , function(req, res) {
+app.get('/register', function(req, res) {
res.render('register');
});
@@ -782,12 +782,11 @@ app.post('/register', function(req, res) {
Person.register(new Person({ username : req.body.username }), req.body.password, function(err, user) {
if (err) {
- console.log(err);
req.flash('error', 'Something went wrong: ' + err);
return res.render('register', { user : user });
} else {
req.logIn(user, function(err) {
- req.flash('info', lang.en.intro );
+ req.flash('info', lang.en.intro.replace('{{username}}', user.slug ) );
res.redirect('/');
});
}