Unverified Commit 4a90ad90 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito Committed by GitHub

Merge pull request #1179 from RocketChat/fix/login-screen

[FIX] Adds double check before showing the sign up view.
parents 2c71c2e3 bcf7c919
......@@ -126,7 +126,7 @@ class LoginPresenter @Inject constructor(
}
private fun setupUserRegistrationView() {
if (settings.isRegistrationEnabledForNewUsers()) {
if (settings.isRegistrationEnabledForNewUsers() && settings.isLoginFormEnabled()) {
view.showSignUpView()
view.setupSignUpView()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment