Make allow email password login default true (#10838)
* Make allow email password login default true * Change test
This commit is contained in:
parent
30fa3b79a3
commit
b5f20c0a46
3 changed files with 3 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ module Constants
|
|||
placeholder: ""
|
||||
},
|
||||
allow_email_password_login: {
|
||||
description: "Can users login with only email and password?",
|
||||
description: "Can users login using email and password?",
|
||||
placeholder: ""
|
||||
},
|
||||
authentication_providers: {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class SiteConfig < RailsSettings::Base
|
|||
|
||||
# Authentication
|
||||
field :allow_email_password_registration, type: :boolean, default: false
|
||||
field :allow_email_password_login, type: :boolean, default: false
|
||||
field :allow_email_password_login, type: :boolean, default: true
|
||||
field :authentication_providers, type: :array, default: proc { Authentication::Providers.available }
|
||||
field :invite_only_mode, type: :boolean, default: false
|
||||
field :twitter_key, type: :string, default: ApplicationConfig["TWITTER_KEY"]
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ RSpec.describe "Registrations", type: :request do
|
|||
|
||||
it "only shows the single sign on options if they are present" do
|
||||
allow(Authentication::Providers).to receive(:enabled).and_return([])
|
||||
allow(SiteConfig).to receive(:allow_email_password_login).and_return(false)
|
||||
|
||||
get sign_up_path
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue