]> cat aescling's git repositories - mastodon.git/blob - app/controllers/auth/sessions_controller.rb
Adding e-mail confirmations
[mastodon.git] / app / controllers / auth / sessions_controller.rb
1 class Auth::SessionsController < Devise::SessionsController
2 include Devise::Controllers::Rememberable
3
4 layout 'auth'
5
6 def create
7 super do |resource|
8 remember_me(resource)
9 end
10 end
11
12 protected
13
14 def after_sign_in_path_for(_resource)
15 last_url = stored_location_for(:user)
16
17 if [about_path].include?(last_url)
18 root_path
19 else
20 last_url || root_path
21 end
22 end
23 end
This page took 0.080995 seconds and 5 git commands to generate.