projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc25c3d
)
Use SecureRandom instead of the deprecated ActiveSupport::SecureRandom
author
Tom Hughes
<tom@compton.nu>
Wed, 28 Sep 2011 11:56:12 +0000
(12:56 +0100)
committer
Tom Hughes
<tom@compton.nu>
Mon, 14 Nov 2011 09:42:52 +0000
(09:42 +0000)
app/controllers/user_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/user_controller.rb
b/app/controllers/user_controller.rb
index 9ef1ab409e292750b89b22ad7cbf60a7fc7f1da0..fa93313b3df5a782b18172359970edeba02ef340 100644
(file)
--- a/
app/controllers/user_controller.rb
+++ b/
app/controllers/user_controller.rb
@@
-48,7
+48,7
@@
class UserController < ApplicationController
if params[:user] and params[:user][:openid_url] and @user.pass_crypt.empty?
# We are creating an account with OpenID and no password
# was specified so create a random one
- @user.pass_crypt =
ActiveSupport::
SecureRandom.base64(16)
+ @user.pass_crypt = SecureRandom.base64(16)
@user.pass_crypt_confirmation = @user.pass_crypt
end