mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Unsign auth token cookies per discussion on #215
This commit is contained in:
@ -117,7 +117,7 @@ class ApplicationController < ActionController::Base
|
||||
user.auth_token = SecureRandom.hex(16)
|
||||
user.save!
|
||||
end
|
||||
cookies.permanent.signed[:_t] = { :value => user.auth_token, :httponly => true }
|
||||
cookies.permanent[:_t] = { :value => user.auth_token, :httponly => true }
|
||||
end
|
||||
|
||||
# This is odd, but it seems that in Rails `render json: obj` is about
|
||||
|
Reference in New Issue
Block a user