Skip to content

Commit 1a55858

Browse files
committed
one more little bug there
1 parent 68e2ee4 commit 1a55858

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/controllers/users_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def new
1111

1212
def create
1313
@user = User.new(params[:user])
14+
@user.api_key = Digest::SHA1.hexdigest(Time.now.to_s + rand(12341234).to_s)[1..16]
1415
if @user.save
1516
steve = User.first
1617
steve.watchings.build(:watches_id => @user.id).save

0 commit comments

Comments
 (0)