Commit 09e6ea80 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'peterhegman/fix-unlock-user-success-alert' into 'master'

Fix the color of the unlock user success alert

See merge request gitlab-org/gitlab!68068
parents fccce8ff e67af5d5
......@@ -148,7 +148,7 @@ class Admin::UsersController < Admin::ApplicationController
def unlock
if update_user { |user| user.unlock_access! }
redirect_back_or_admin_user(alert: _("Successfully unlocked"))
redirect_back_or_admin_user(notice: _("Successfully unlocked"))
else
redirect_back_or_admin_user(alert: _("Error occurred. User was not unlocked"))
end
......
......@@ -416,6 +416,7 @@ RSpec.describe Admin::UsersController do
put :unlock, params: { id: user.username }
user.reload
expect(user.access_locked?).to be_falsey
expect(flash[:notice]).to eq _('Successfully unlocked')
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment