import Ember from 'ember'; | |
export default Ember.Controller.extend(Ember.Validations.Mixin, { | |
errors: [], | |
validations: { | |
email: { | |
presence: true, | |
format: { | |
with: /^[\w+\-.]+@[a-z\d\-.]+\.[a-z]+$/i, | |
message: 'must be a valid e-mail address' | |
} | |
}, | |
password: { | |
presence: true, | |
length: { minimum: 8 } | |
}, | |
passwordConfirmation: true | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment