Skip to content

Instantly share code, notes, and snippets.



Created Sep 16, 2014
What would you like to do?
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
You can’t perform that action at this time.