Created
September 16, 2014 00:45
-
-
Save mockra/700b942026ef9fdf2c34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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