From 9dadc61cae2c4c01a97880e89ca86a0e760fc8d1 Mon Sep 17 00:00:00 2001 From: hukl Date: Wed, 7 Oct 2009 21:03:28 +0200 Subject: implemented complete restful user management interface including functional tests. this enables basic user operation. note that only admins are allowed to create, edit, destroy other users --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') diff --git a/app/models/user.rb b/app/models/user.rb index 26ebf45..035a145 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -21,7 +21,7 @@ class User < ActiveRecord::Base validates_format_of :email, :with => Authentication.email_regex, :message => Authentication.bad_email_message - attr_accessible :login, :email, :password, :password_confirmation + attr_accessible :login, :email, :password, :password_confirmation, :admin # Authenticates a user by their login name and unencrypted password. Returns the user or nil. def self.authenticate(login, password) -- cgit v1.3