Server side checking of user input before allowing signup.
parent
25b14354ad
commit
b7e73c90eb
|
@ -34,12 +34,13 @@
|
|||
})
|
||||
.done(function (data, textStatus, xhr) {
|
||||
if (data.alreadyPosted) {
|
||||
window.location = '/stories/' + data.storyURL;
|
||||
window.location = data.storyURL;
|
||||
} else {
|
||||
window.location = '/stories/submit/url=' +
|
||||
window.location = '/stories/submit/new-story?url=' +
|
||||
encodeURIComponent(data.storyURL) +
|
||||
'&title=' + encodeURIComponent(data.storyTitle) +
|
||||
'&image=' + encodeURIComponent(data.storyImage)
|
||||
'&image=' + encodeURIComponent(data.storyImage) +
|
||||
'&description=' + encodeURIComponent(data.storyMetaDescription);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue