Skip to content

Commit

Permalink
Revert "Devise shows t.devise.failure.timeout after a user signs in. …
Browse files Browse the repository at this point in the history
…Removing… (#2104)" (#2112)

This reverts commit 73255b4.
  • Loading branch information
yachtcaptain23 authored Aug 7, 2019
1 parent 73255b4 commit 15c0e54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/publishers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def get_site_banner_data
private

def authenticate_via_token
sign_out(current_publisher) if current_publisher

publisher_id = params[:id]
token = params[:token]
confirm_email = params[:confirm_email]
Expand Down
6 changes: 6 additions & 0 deletions app/views/layouts/static.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ html
link rel="icon" type="image/png" href=image_path("favicon.ico")

body data-action=params[:action] data-controller=params[:controller]
.notifications.navbar-static-top
- if flash[:alert]
.alert.alert-warning.flash= flash[:alert]
- if flash[:notice]
.alert.alert-success.flash= flash[:notice]

= yield

0 comments on commit 15c0e54

Please sign in to comment.