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