Hooked up on the fly OpenID user creation.

* Use OpenID registration fields for the user.
* Generate a random password when a user is created.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2443 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2009-02-11 19:07:12 +00:00
parent 896e64b759
commit 0310f43126
3 changed files with 30 additions and 11 deletions
+7
View File
@@ -177,4 +177,11 @@ class UserTest < Test::Unit::TestCase
assert_not_nil u
assert_equal 'jsmith@somenet.foo', u.mail
end
def test_random_password
u = User.new
u.random_password
assert !u.password.blank?
assert !u.password_confirmation.blank?
end
end