]> cat aescling's git repositories - mastodon.git/commit
Give SINGLE_USER a chance to register (#1820)
authorMarcin Cieślak <saper@saper.info>
Sat, 15 Apr 2017 14:46:27 +0000 (16:46 +0200)
committerEugen <eugen@zeonfederated.com>
Sat, 15 Apr 2017 14:46:27 +0000 (16:46 +0200)
commit1c8477eab214629d26d9526b386bf75729917060
treea937c60129fa9ee947c3af7b136a903bd4555c76
parent6670e6d33fa735b6199e3b962f62ed6d1442bae1
Give SINGLE_USER a chance to register (#1820)

An attempt to open a brand new Mastodon instance configured
as SINGLE_USER_MODE=true will cause an exception.

Enable temporary registration if we have no users in the database

Fixes #1817
app/controllers/application_controller.rb
app/controllers/auth/registrations_controller.rb
app/controllers/home_controller.rb
app/views/accounts/show.html.haml
app/views/stream_entries/show.html.haml