Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ gem 'stimulus-rails'
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem 'jbuilder'

gem 'devise'

# Use Redis adapter to run Action Cable in production
# gem "redis", "~> 4.0"

Expand Down
14 changes: 0 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ GEM
tzinfo (~> 2.0)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
bcrypt (3.1.18)
bindex (0.8.1)
bootsnap (1.15.0)
msgpack (~> 1.2)
Expand All @@ -93,12 +92,6 @@ GEM
debug (1.6.3)
irb (>= 1.3.6)
reline (>= 0.3.1)
devise (4.8.1)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
diff-lcs (1.5.0)
erubi (1.11.0)
globalid (1.0.0)
Expand Down Expand Up @@ -136,7 +129,6 @@ GEM
nio4r (2.5.8)
nokogiri (1.13.9-x86_64-linux)
racc (~> 1.4)
orm_adapter (0.5.0)
pg (1.4.5)
public_suffix (5.0.1)
puma (5.6.5)
Expand Down Expand Up @@ -179,9 +171,6 @@ GEM
regexp_parser (2.6.1)
reline (0.3.1)
io-console (~> 0.5)
responders (3.0.1)
actionpack (>= 5.0)
railties (>= 5.0)
rexml (3.2.5)
rspec-core (3.12.0)
rspec-support (~> 3.12.0)
Expand Down Expand Up @@ -222,8 +211,6 @@ GEM
railties (>= 6.0.0)
tzinfo (2.0.5)
concurrent-ruby (~> 1.0)
warden (1.2.9)
rack (>= 2.0.9)
web-console (4.2.0)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
Expand All @@ -245,7 +232,6 @@ DEPENDENCIES
capybara
database_cleaner
debug
devise
importmap-rails
jbuilder
pg (~> 1.1)
Expand Down
31 changes: 0 additions & 31 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,34 +184,3 @@ body {
margin-bottom: 4rem;
border-radius: 7px;
}

.login {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.login h2 {
color: rgb(255, 255, 255);
}

.login input {
height: 2rem;
padding: 1rem;
border: 1px solid #000;
}

.login .action {
background-color: rgb(255, 255, 255);
width: 100%;
}

.sign-up {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 70%;
left: 43%;
}
13 changes: 2 additions & 11 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception

before_action :update_allowed_parameters, if: :devise_controller?

before_action :authenticate_user!

protected

def update_allowed_parameters
devise_parameter_sanitizer.permit(:sign_up) { |u| u.permit(:name, :email, :password) }
devise_parameter_sanitizer.permit(:account_update) { |u| u.permit(:name, :email, :password, :current_password) }
def current_user
@current_user = User.first
end
end
4 changes: 0 additions & 4 deletions app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
class User < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable, :confirmable,
:recoverable, :rememberable, :validatable
has_many :posts, foreign_key: 'author_id'
has_many :likes, foreign_key: 'author_id'
has_many :comments, foreign_key: 'author_id'
Expand Down
16 changes: 0 additions & 16 deletions app/views/confirmables/confirmations/new.html.erb

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions app/views/confirmables/mailer/email_changed.html.erb

This file was deleted.

3 changes: 0 additions & 3 deletions app/views/confirmables/mailer/password_change.html.erb

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions app/views/confirmables/mailer/unlock_instructions.html.erb

This file was deleted.

25 changes: 0 additions & 25 deletions app/views/confirmables/passwords/edit.html.erb

This file was deleted.

16 changes: 0 additions & 16 deletions app/views/confirmables/passwords/new.html.erb

This file was deleted.

43 changes: 0 additions & 43 deletions app/views/confirmables/registrations/edit.html.erb

This file was deleted.

29 changes: 0 additions & 29 deletions app/views/confirmables/registrations/new.html.erb

This file was deleted.

26 changes: 0 additions & 26 deletions app/views/confirmables/sessions/new.html.erb

This file was deleted.

15 changes: 0 additions & 15 deletions app/views/confirmables/shared/_error_messages.html.erb

This file was deleted.

25 changes: 0 additions & 25 deletions app/views/confirmables/shared/_links.html.erb

This file was deleted.

16 changes: 0 additions & 16 deletions app/views/confirmables/unlocks/new.html.erb

This file was deleted.

16 changes: 0 additions & 16 deletions app/views/devise/confirmations/new.html.erb

This file was deleted.

Loading