mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
allow legacy auth setting to be default when server lock is disabled
This commit is contained in:
@@ -99,11 +99,10 @@ export const AddServerForm = ({ onCancel }: AddServerFormProps) => {
|
||||
const { servers: discovered } = useAutodiscovery();
|
||||
|
||||
const serverLock = isServerLock();
|
||||
const legacyAuthDefault = serverLock && isLegacyAuth();
|
||||
|
||||
const form = useForm({
|
||||
initialValues: {
|
||||
legacyAuth: legacyAuthDefault,
|
||||
legacyAuth: isLegacyAuth(),
|
||||
name:
|
||||
(localSettings ? localSettings.env.SERVER_NAME : window.SERVER_NAME) || 'My Server',
|
||||
password: '',
|
||||
|
||||
Reference in New Issue
Block a user