Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gem 'bootsnap', '~> 1.19.0'
gem 'browser', '~> 6.2.0'
gem 'cssbundling-rails', '~> 1.4', '>= 1.4.3'
gem 'dartsass-rails', '~> 0.5.1'
gem 'devise', '~>4.9.4'
gem 'devise', '~>5.0.0'
gem 'devise-i18n', '~>1.15.0'
gem 'factory_bot_rails', '~> 6.5.1'
gem 'faker', '~> 3.5.3'
Expand Down
33 changes: 17 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ GEM
ast (2.4.3)
awesome_print (1.9.2)
base64 (0.3.0)
bcrypt (3.1.20)
bcrypt (3.1.21)
benchmark (0.5.0)
better_errors (2.10.1)
erubi (>= 1.0.0)
Expand Down Expand Up @@ -128,10 +128,10 @@ GEM
database_consistency (2.1.1)
activerecord (>= 3.2)
date (3.5.1)
devise (4.9.4)
devise (5.0.0)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0)
railties (>= 7.0)
responders
warden (~> 1.2.3)
devise-i18n (1.15.0)
Expand All @@ -148,7 +148,7 @@ GEM
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
erb (6.0.0)
erb (6.0.1)
erubi (1.13.1)
et-orbi (1.4.0)
tzinfo
Expand Down Expand Up @@ -219,8 +219,8 @@ GEM
http_parser.rb (0.8.0)
i18n (1.14.8)
concurrent-ruby (~> 1.0)
io-console (0.8.1)
irb (1.15.3)
io-console (0.8.2)
irb (1.16.0)
pp (>= 0.6.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
Expand Down Expand Up @@ -257,7 +257,7 @@ GEM
ffi-compiler (~> 1.0)
rake (~> 13.0)
logger (1.7.0)
loofah (2.24.1)
loofah (2.25.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
lumberjack (1.4.2)
Expand All @@ -276,7 +276,8 @@ GEM
mina (1.2.5)
rake
mini_mime (1.1.5)
minitest (5.26.2)
minitest (6.0.1)
prism (~> 1.5)
mollie-api-ruby (4.18.0)
bigdecimal (~> 3.1, >= 3.1.8)
ostruct (~> 0.6.0)
Expand Down Expand Up @@ -304,7 +305,7 @@ GEM
net-ssh (7.3.0)
netrc (0.11.0)
nio4r (2.7.5)
nokogiri (1.18.10-x86_64-linux-gnu)
nokogiri (1.19.0-x86_64-linux-gnu)
racc (~> 1.4)
notiffany (0.1.3)
nenv (~> 0.1)
Expand Down Expand Up @@ -354,7 +355,7 @@ GEM
pry (>= 0.13, < 0.16)
pry-rails (0.3.11)
pry (>= 0.13.0)
psych (5.2.6)
psych (5.3.1)
date
stringio
public_suffix (6.0.2)
Expand All @@ -376,7 +377,7 @@ GEM
rack (>= 3.0.0)
rack-test (2.2.0)
rack (>= 1.3)
rackup (2.2.1)
rackup (2.3.1)
rack (>= 3)
rails (7.2.3)
actioncable (= 7.2.3)
Expand Down Expand Up @@ -422,7 +423,7 @@ GEM
rb-inotify (0.11.1)
ffi (~> 1.0)
rb-readline (0.5.5)
rdoc (6.16.1)
rdoc (7.1.0)
erb
psych (>= 4.0.0)
tsort
Expand Down Expand Up @@ -563,9 +564,9 @@ GEM
net-sftp (>= 2.1.2)
net-ssh (>= 2.8.0)
ostruct
stringio (3.1.9)
stringio (3.2.0)
terminal-notifier-guard (1.7.0)
thor (1.4.0)
thor (1.5.0)
timecop (0.9.10)
timeliness (0.5.3)
timeout (0.6.0)
Expand Down Expand Up @@ -598,7 +599,7 @@ GEM
base64
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
zeitwerk (2.7.3)
zeitwerk (2.7.4)

PLATFORMS
x86_64-linux
Expand All @@ -617,7 +618,7 @@ DEPENDENCIES
cssbundling-rails (~> 1.4, >= 1.4.3)
dartsass-rails (~> 0.5.1)
database_consistency (~> 2.1.1)
devise (~> 4.9.4)
devise (~> 5.0.0)
devise-i18n (~> 1.15.0)
dotenv-rails (~> 3.2.0)
factory_bot_rails (~> 6.5.1)
Expand Down
2 changes: 1 addition & 1 deletion app/models/sofia_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class SofiaAccount < OmniAuth::Identity::Models::ActiveRecord
validates :user, uniqueness: true # rubocop:disable Rails/UniqueValidationWithoutIndex
validates :username, presence: true, uniqueness: true
# the presence of :password is already checked by omniauth-sofia-account itself
validates :password, length: { minimum: 12 }, allow_nil: true
validates :password, length: { minimum: 12, maximum: 128 }, allow_nil: true

auth_key :username # specifies the field within the model that will be used during the login process as username

Expand Down