]> cat aescling's git repositories - mastodon.git/commit
Go to root after login in single user mode (#3289)
authorAkinori MUSHA <knu@idaemons.org>
Fri, 26 May 2017 12:14:03 +0000 (21:14 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 26 May 2017 12:14:03 +0000 (14:14 +0200)
commitf6a93fc15022b8c5ac6574b8918a2ec1a54c6040
treea834f01768592c6c4155edde362d332533c8c603
parent019f3377bbf845fcb97b55ab14c903c17e79a803
Go to root after login in single user mode (#3289)

In single user mode, visitors are redirected to the single user's
profile page.  So, if you are the owner without a session, you start
from that page, click the login button and authenticate yourself
expecting you'll soon get started with the home page, but in reality
you'll get redirected back to where you started from -- your own
profile page.

This fixes the behavior by redirecting you home after login if you
have started from your own profile page.
app/controllers/auth/sessions_controller.rb
spec/controllers/auth/sessions_controller_spec.rb