mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
FIX: always unstage users when they log in
This commit is contained in:
@ -313,6 +313,13 @@ describe Auth::DefaultCurrentUserProvider do
|
||||
expect(provider("/", "HTTP_COOKIE" => "_t=#{token.unhashed_auth_token}").current_user).to eq(nil)
|
||||
end
|
||||
|
||||
it "always unstage users" do
|
||||
staged_user = Fabricate(:user, staged: true)
|
||||
provider("/").log_on_user(staged_user, {}, {})
|
||||
staged_user.reload
|
||||
expect(staged_user.staged).to eq(false)
|
||||
end
|
||||
|
||||
context "user api" do
|
||||
let :user do
|
||||
Fabricate(:user)
|
||||
|
Reference in New Issue
Block a user