Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UUIDs as indentifiers for sessions in public #176

Merged
merged 4 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs
  • Loading branch information
mikker committed Nov 7, 2023
commit 967562a227d059eeffa8877c7815ede163b0604d
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

# Unreleased

### Changed

Sessions are now referenced publicly by a random UUID instead of their primary key.

This needs a manual database migration like so:

...TODO

### Added

- Add default flash notice for sign out (#178)
Expand Down
2 changes: 1 addition & 1 deletion docs/upgrading_to_1_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ bin/rails g migration UpgradePassswordless
```

```ruby
class UpgradePassswordless < ActiveRecord::Migration[7.0]
class UpgradePasswordless < ActiveRecord::Migration[7.0]
def change
# Encrypted tokens
add_column(:passwordless_sessions, :token_digest, :string)
Expand Down
Loading