]> cat aescling's git repositories - mastodon.git/commit
Allow mods to disable login, improve message when login disabled (#8329)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 23 Aug 2018 21:26:29 +0000 (23:26 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Aug 2018 21:26:29 +0000 (23:26 +0200)
commit2f34b747b3f765a37d7b23e70de42005c0b62f58
tree4fbfe29446c9ebdfe8a072ba07a71218613eb32f
parent9d58daac6c860b599f8c266b8bb10c6170220dd3
Allow mods to disable login, improve message when login disabled (#8329)

* Allow moderators to disable/enable login

* Instead of rejecting login, show forbidden error when login disabled

Avoid confusion because when login is rejected, the message is that
the account is not activated, which is wrong.

* Fix tests
app/controllers/api/base_controller.rb
app/controllers/application_controller.rb
app/controllers/auth/sessions_controller.rb
app/models/user.rb
app/policies/user_policy.rb
spec/models/user_spec.rb