filling in everything needed to login and view the account page, wheeeee.

This commit is contained in:
Dan Buch
2011-08-09 22:03:10 -04:00
parent 7ca80880a8
commit b3d2c45c36
5 changed files with 50 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
class User < ActiveRecord::Base
validates_uniquness_of :username
validates_uniqueness_of :username
validates_confirmation_of :password, :on => :create
validates_length_of :password, :within => 5..40