From 1f8c76d824cb7a541e7c2e58fc6997d4a4da8569 Mon Sep 17 00:00:00 2001 From: xuyunshi <405029644@qq.com> Date: Mon, 18 Sep 2023 15:55:39 +0800 Subject: [PATCH] Choose appropriate login type from Env --- Flat/Modules/Login/LoginViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flat/Modules/Login/LoginViewController.swift b/Flat/Modules/Login/LoginViewController.swift index 53d9479d..c2e571f2 100644 --- a/Flat/Modules/Login/LoginViewController.swift +++ b/Flat/Modules/Login/LoginViewController.swift @@ -23,7 +23,7 @@ class LoginViewController: UIViewController { } } - let loginType: BehaviorRelay = .init(value: .sms) + let loginType: BehaviorRelay = .init(value: Env().preferPhoneAccount ? .sms : .password) @IBOutlet var splitStackView: UIStackView! @IBOutlet var contentStackView: UIStackView!