Skip to content

Commit

Permalink
Merge branch 'master' into releases/0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink committed Jul 22, 2021
2 parents d818506 + b8afba9 commit cc15315
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/authentic.cr
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ module Authentic
end

def self.validate_length(value : String)
if value.bytesize != 32
if value.bytesize < 32
Habitat.raise_validation_error <<-ERROR
Authentic secret_key setting must be 32 bytes long.
Authentic secret_key setting must be at least 32 bytes long,
but got #{value.bytesize} bytes '#{value}'.
Try this...
Expand Down

0 comments on commit cc15315

Please sign in to comment.