0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Merge pull request #1145 from b1nd/merge

This commit is contained in:
Hannah Wolfe 2013-10-22 23:11:14 +01:00
commit a7a4420128

View file

@ -38,6 +38,7 @@ User = ghostBookshelf.Model.extend({
if (this.get('website') && this.get('website').length > 0) {
ghostBookshelf.validator.check(this.get('website'), "Looks like your website is not actually a website. Try again?").isUrl();
}
ghostBookshelf.validator.check(this.get('location'), 'This seems a little too long! Please try and keep your location under 150 characters.').len(0, 150);
return true;
},