From 53af3e6b9e6fd221f2b6da1f6029017cf4a23831 Mon Sep 17 00:00:00 2001 From: Kartikey Tanna Date: Tue, 18 Jun 2019 16:18:14 +0000 Subject: #57815 Password authentication disabled for UltraAuth users Disabled password authentication for the users registered using omniauth-ultraauth strategy --- spec/controllers/application_controller_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec/controllers') diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb index 40669ec5451..447a12b2fac 100644 --- a/spec/controllers/application_controller_spec.rb +++ b/spec/controllers/application_controller_spec.rb @@ -289,6 +289,13 @@ describe ApplicationController do expect(subject).to be_truthy end + + it 'returns true if user has signed up using omniauth-ultraauth' do + user = create(:omniauth_user, provider: 'ultraauth') + allow(controller).to receive(:current_user).and_return(user) + + expect(subject).to be_truthy + end end describe '#two_factor_grace_period' do -- cgit v1.2.3