app/controllers/trestle/auth/sessions_controller.rb in trestle-auth-0.2.4 vs app/controllers/trestle/auth/sessions_controller.rb in trestle-auth-0.2.5

- old
+ new

@@ -8,17 +8,17 @@ def create if user = Trestle.config.auth.authenticate(params) login!(user) remember_me! if params[:remember_me] == "1" - redirect_to previous_location || Trestle.config.path + redirect_to previous_location || instance_exec(&Trestle.config.auth.redirect_on_login) else flash[:error] = t("admin.auth.error", default: "Incorrect login details.") redirect_to action: :new end end def destroy logout! - redirect_to login_url + redirect_to instance_exec(&Trestle.config.auth.redirect_on_logout) end end