mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
68d35b14f4
Adds 2 factor authentication method via second factor security keys over [web authn](https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API). Allows a user to authenticate a second factor on login, login-via-email, admin-login, and change password routes. Adds registration area within existing user second factor preferences to register multiple security keys. Supports both external (yubikey) and built-in (macOS/android fingerprint readers).
9 lines
230 B
Ruby
9 lines
230 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddSecureIdentifierColumnToUsers < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_column :users, :secure_identifier, :string
|
|
add_index :users, :secure_identifier, unique: true
|
|
end
|
|
end
|