0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
ghost/core/client
Aileen Nowak 6dbf610c8f Fixes error in validation
closes #6826

- refactors the validation of facebook and twitter input field in `general.js` and `user.js` controller
	- Example validations for facebook:
		- `facebook.com/username` will be corrected to the full URL
		- `user` will show error `Your Page name is not a valid Facebook Page name' for `general.js` and `Your Username is not a valid Facebook Username` for `user.js` as the username in facebook has to be at least 5 characters long
		- `twitter.com/username` will be autocorrected to the valid facebook URL incl. the `username`
	- Example validations for twitter:
		- `twitter.com/user_` will be corrected to the full URL
                - `user:99` will show error `Your Username is not a valid Twitter Username`
                - `facebook.com/username` will be autocorrected to the valid twitter URL incl. the `username`
- updates both acceptance tests
- adds further validation for facebook pages in general settings and user. Submitting a url which incl. `/page/` or `/pages/` will now accept any username followed incl. further `/`.
- adds a custom transform `facebook-url-user` which will extract the username (if it's a facebook page, incl. `pages/`) to store only this in the backend
- uses the `twitter-url-user` transform now also for user
2016-05-17 17:44:23 +01:00
..
app Fixes error in validation 2016-05-17 17:44:23 +01:00
config deps: ember-simple-auth@1.1.0-beta.4 2016-04-28 08:34:26 -05:00
lib Use es6 across client and add ember-suave to enforce rules 2015-11-30 10:41:01 +00:00
public/assets Slack integration 2016-05-08 12:49:15 +02:00
tests Fixes error in validation 2016-05-17 17:44:23 +01:00
.ember-cli
.gitignore
.jscsrc Use es6 across client and add ember-suave to enforce rules 2015-11-30 10:41:01 +00:00
.jshintrc Remove $ from jshint's predef, always use Ember's $ 2015-12-01 20:52:25 +00:00
.watchmanconfig deps: ember-cli@1.13.13 2015-11-30 11:21:39 -06:00
bower.json deps: ember@2.5.1 2016-04-28 07:15:15 -05:00
ember-cli-build.js Drop XRegExp dependency 2016-03-30 19:45:20 +01:00
package.json deps: ember-simple-auth@1.1.0 2016-05-15 16:45:16 -06:00
testem.js deps: ember-cli@2.4.0 2016-03-01 12:49:28 +00:00