From: Tom Hughes Date: Wed, 28 Sep 2011 11:56:12 +0000 (+0100) Subject: Use SecureRandom instead of the deprecated ActiveSupport::SecureRandom X-Git-Tag: live~6044 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/97b1290f1a9f784566cc352e744dc2d009ae49ce?hp=fc25c3d412829774abf0454e4dcc92e41f47454c Use SecureRandom instead of the deprecated ActiveSupport::SecureRandom --- diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 9ef1ab409..fa93313b3 100644 --- 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