Experimental authentication for Launchpad and Google added
This commit is contained in:
parent
0c080386ef
commit
9a5ddb5e13
8 changed files with 154 additions and 44 deletions
6
db/migrate/20170405204143_add_omniauth_to_users.rb
Normal file
6
db/migrate/20170405204143_add_omniauth_to_users.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddOmniauthToUsers < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :users, :provider, :string
|
||||
add_column :users, :uid, :string
|
||||
end
|
||||
end
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20170405144026) do
|
||||
ActiveRecord::Schema.define(version: 20170405204143) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
@ -76,6 +76,8 @@ ActiveRecord::Schema.define(version: 20170405144026) do
|
|||
t.integer "failed_attempts", default: 0, null: false
|
||||
t.string "unlock_token"
|
||||
t.datetime "locked_at"
|
||||
t.string "provider"
|
||||
t.string "uid"
|
||||
t.index ["email"], name: "index_users_on_email", unique: true, using: :btree
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue