Use devise method for requiring login
This commit is contained in:
parent
19bafe081f
commit
f829bb3379
@ -1,5 +1,5 @@
|
||||
class AccountController < ApplicationController
|
||||
before_action :require_user_signed_in
|
||||
before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
@current_section = :account
|
||||
|
@ -1,5 +1,5 @@
|
||||
class Contributions::DonationsController < ApplicationController
|
||||
before_action :require_user_signed_in
|
||||
before_action :authenticate_user!
|
||||
|
||||
# GET /donations
|
||||
# GET /donations.json
|
||||
|
@ -1,5 +1,5 @@
|
||||
class Contributions::ProjectsController < ApplicationController
|
||||
before_action :require_user_signed_in
|
||||
before_action :authenticate_user!
|
||||
|
||||
# GET /contributions
|
||||
def index
|
||||
|
@ -1,5 +1,5 @@
|
||||
class DashboardController < ApplicationController
|
||||
before_action :require_user_signed_in
|
||||
before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
@current_section = :services
|
||||
|
@ -1,5 +1,5 @@
|
||||
class InvitationsController < ApplicationController
|
||||
before_action :require_user_signed_in, except: ["show"]
|
||||
before_action :authenticate_user!, except: ["show"]
|
||||
before_action :require_user_signed_out, only: ["show"]
|
||||
|
||||
# GET /invitations
|
||||
|
@ -1,7 +1,7 @@
|
||||
require "rqrcode"
|
||||
|
||||
class Services::LightningController < ApplicationController
|
||||
before_action :require_user_signed_in
|
||||
before_action :authenticate_user!
|
||||
before_action :authenticate_with_lndhub
|
||||
before_action :set_current_section
|
||||
before_action :fetch_balance
|
||||
|
Loading…
x
Reference in New Issue
Block a user