FEATURE: Configure Admin Account

Adds a "Step 0" to the wizard if the site has no admin accounts where
the user is prompted to finish setting up their admin account from the
list of acceptable email addresses.

Once confirmed, the wizard begins.
This commit is contained in:
Robin Ward
2016-10-18 11:44:25 -04:00
parent 674264726d
commit c03d25f170
17 changed files with 296 additions and 6 deletions

View File

@ -4,6 +4,8 @@ class HomePageConstraint
end
def matches?(request)
return @filter == 'finish_installation' if SiteSetting.has_login_hint?
provider = Discourse.current_user_provider.new(request.env)
homepage = provider.current_user ? SiteSetting.homepage : SiteSetting.anonymous_homepage
homepage == @filter