forked from e621ng/e621ng

that hash is bcrypted. Bcrypted hashes are stored in a new column on users. This separate column is only to allow for rollbacks, eventually the old SHA1 hash column will be removed. Sensitive cookie details are now encrypted to prevent user tampering and more stringent checks on secret_token and session_secret_key are enforced.
10 lines
353 B
Ruby
10 lines
353 B
Ruby
require File.expand_path('../../state_checker', __FILE__)
|
|
|
|
StateChecker.new.check!
|
|
|
|
Danbooru::Application.config.action_dispatch.session = {
|
|
:key => '_danbooru2_session',
|
|
:secret => File.read(File.expand_path("~/.danbooru/session_secret_key"))
|
|
}
|
|
Danbooru::Application.config.secret_token = File.read(File.expand_path("~/.danbooru/secret_token"))
|