diff options
author | Robert Speicher <robert@gitlab.com> | 2015-12-21 17:53:20 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2015-12-21 17:53:20 +0000 |
commit | 9570495e75f90d1011531753dd41f0c06e8fcf99 (patch) | |
tree | d3326bfcba348788103a5298ab9d4475bc22b773 /db | |
parent | 17ed42e362032e3594ae1cf34e6a970be826bdca (diff) | |
parent | be41d84fb078667694ecbf5f2729175fbf8b0343 (diff) | |
download | gitlab-ce-9570495e75f90d1011531753dd41f0c06e8fcf99.tar.gz |
Merge branch 'add_email_unlock' into 'master'
Allow account unlock via email
We see a lot of users get confused about what it means when your account gets
locked. Many try to reset their password and are still faced with a lockout.
With this change, users receive an email that allows them to unlock their
account immediately. The previous behavior where the account is auto-unlocked
after a time also still works.
See merge request !2049
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20151210030143_add_unlock_token_to_user.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20151210030143_add_unlock_token_to_user.rb b/db/migrate/20151210030143_add_unlock_token_to_user.rb new file mode 100644 index 00000000000..0ea66ba65df --- /dev/null +++ b/db/migrate/20151210030143_add_unlock_token_to_user.rb @@ -0,0 +1,5 @@ +class AddUnlockTokenToUser < ActiveRecord::Migration + def change + add_column :users, :unlock_token, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 0167e30ff8b..60b42f7a473 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -837,6 +837,7 @@ ActiveRecord::Schema.define(version: 20151210125932) do t.integer "consumed_timestep" t.integer "layout", default: 0 t.boolean "hide_project_limit", default: false + t.string "unlock_token" end add_index "users", ["admin"], name: "index_users_on_admin", using: :btree |