Install and configure Devise for user authentication #149
| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| class Users::RegistrationsController < Devise::RegistrationsController | class Users::RegistrationsController < Devise::RegistrationsController | ||||||
|   clear_respond_to  |   clear_respond_to  | ||||||
|   respond_to :json |   respond_to :json | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| class Users::SessionsController < Devise::SessionsController | class Users::SessionsController < Devise::SessionsController | ||||||
|   clear_respond_to |   clear_respond_to | ||||||
|   respond_to :json |   respond_to :json | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								db/schema.rb
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								db/schema.rb
									
									
									
										generated
									
									
									
								
							| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| # This file is auto-generated from the current state of the database. Instead | # This file is auto-generated from the current state of the database. Instead | ||||||
| # of editing this file, please use the migrations feature of Active Record to | # of editing this file, please use the migrations feature of Active Record to | ||||||
| # incrementally modify your database, and then regenerate this schema definition. | # incrementally modify your database, and then regenerate this schema definition. | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| module Swagger | module Swagger | ||||||
|   module Schema |   module Schema | ||||||
|     USER = { |     USER = { | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| require 'swagger_helper' | require 'swagger_helper' | ||||||
| 
 | 
 | ||||||
| RSpec.describe 'users/registrations', type: :request do | RSpec.describe 'users/registrations', type: :request do | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| require 'swagger_helper' | require 'swagger_helper' | ||||||
| 
 | 
 | ||||||
| RSpec.describe 'users/sessions', type: :request do | RSpec.describe 'users/sessions', type: :request do | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user