This website requires JavaScript.
Explore
Help
Sign In
TryGhost
/
Ghost
Watch
1
Star
0
Fork
0
You've already forked Ghost
mirror of
https://github.com/TryGhost/Ghost.git
synced
2024-12-24 11:22:19 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
090c58edb5
Ghost
/
ghost
/
admin
/
validators
/
signup.js
4 lines
101 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Create new user validator to DRY up validators No issue - Created NewUserValidator class to DRY up validation of a models name, email, and password - Changed SignUpValidator to be an instance of NewUserValidator - Changed SetUpValidator to extend NewUserValidator
2014-07-25 23:17:16 +04:00
import
NewUserValidator
from
'ghost/validators/new-user'
;
Better handling of validation errors + more documentation closes #3153 - this is all about the validation engine - add a option, `opts.model`, to use a passed-in model directly if needed - handle validators that return an array of strings, array of objects, or both - ajax util returns either an array of errors or a single concat'd string - remove formatErrors function from the mixin and make it private - allow validation options to be passed into `.save()` since ember-data doesn't take params on `.save()` anyway - streamline control flow
2014-06-30 07:43:25 +04:00
Create new user validator to DRY up validators No issue - Created NewUserValidator class to DRY up validation of a models name, email, and password - Changed SignUpValidator to be an instance of NewUserValidator - Changed SetUpValidator to extend NewUserValidator
2014-07-25 23:17:16 +04:00
export
default
NewUserValidator
.
create
(
)
;
Reference in New Issue
Copy Permalink