Skip to content

Commit

Permalink
* lib/parkplace/models.rb: require a password for all users.
Browse files Browse the repository at this point in the history
  • Loading branch information
_why committed May 24, 2006
1 parent 2db77d1 commit f021ec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/parkplace/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class User < Base
validates_length_of :login, :within => 3..40
validates_uniqueness_of :login
validates_uniqueness_of :key
validates_presence_of :password
validates_confirmation_of :password
def before_save
@password_clean = self.password
Expand Down

0 comments on commit f021ec6

Please sign in to comment.