|
@@ -32,7 +32,12 @@ router.post('/invite', function(req, res) {
|
|
|
} else {
|
|
|
var error = body.error;
|
|
|
if (error === 'already_invited' || error === 'already_in_team') {
|
|
|
- error = 'You are already invited.'
|
|
|
+ res.render('result', {
|
|
|
+ community: config.community,
|
|
|
+ message: 'Success! You were already invited.<br>' +
|
|
|
+ 'Visit to <a href="https://'+ config.slackUrl +'">'+ config.community +'</a>'
|
|
|
+ });
|
|
|
+ return;
|
|
|
} else if (error === 'invalid_email') {
|
|
|
error = 'The email you entered is an invalid email.'
|
|
|
} else if (error === 'invalid_auth') {
|